File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
java/com/devoxx/genie/util Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ private static void setWindowContext(@NotNull ChatMessageContext chatMessageCont
8282
8383 // Set editor info if available
8484 Editor selectedTextEditor = editorFileButtonManager .getSelectedTextEditor ();
85- if (chatMessageContext .getFilesContext ().isEmpty () && selectedTextEditor != null ) {
85+ if ((chatMessageContext .getFilesContext () == null || chatMessageContext .getFilesContext ().isEmpty ()) &&
86+ selectedTextEditor != null ) {
8687 addDefaultEditorInfoToMessageContext (selectedTextEditor , chatMessageContext );
8788 }
8889 }
Original file line number Diff line number Diff line change 3535 ]]> </description >
3636
3737 <change-notes ><![CDATA[
38+ <h2>V0.4.20</h2>
39+ <UL>
40+ <LI>Fix #546 : NPE on chatMessageContext.getFilesContext().isEmpty() by @stephanj</LI>
41+ </UL>
3842 <h2>V0.4.19</h2>
3943 <UL>
4044 <LI>Fix #529 : Concurrency improvement by @stephanj</LI>
You can’t perform that action at this time.
0 commit comments