From: <vam...@us...> - 2023-11-17 20:21:43
|
Revision: 25702 http://sourceforge.net/p/jedit/svn/25702 Author: vampire0 Date: 2023-11-17 20:21:41 +0000 (Fri, 17 Nov 2023) Log Message: ----------- Fix NullPointerException during saving autosave settings if no previous autosave directory was set Modified Paths: -------------- jEdit/trunk/doc/CHANGES.txt jEdit/trunk/org/gjt/sp/jedit/options/SaveBackupOptionPane.java Modified: jEdit/trunk/doc/CHANGES.txt =================================================================== --- jEdit/trunk/doc/CHANGES.txt 2023-11-17 19:37:45 UTC (rev 25701) +++ jEdit/trunk/doc/CHANGES.txt 2023-11-17 20:21:41 UTC (rev 25702) @@ -9,6 +9,9 @@ {{{ Bug Fixes +- Fix NullPointerException during saving autosave settings if no previous + autosave directory was set (Björn Kautler) + - BeanShell snippets and macros now work consistently and not suddenly change behaviour anymore just because some BeanShell snippet defined a class. This now disables reflective access to otherwise inaccessible fields through Modified: jEdit/trunk/org/gjt/sp/jedit/options/SaveBackupOptionPane.java =================================================================== --- jEdit/trunk/org/gjt/sp/jedit/options/SaveBackupOptionPane.java 2023-11-17 19:37:45 UTC (rev 25701) +++ jEdit/trunk/org/gjt/sp/jedit/options/SaveBackupOptionPane.java 2023-11-17 20:21:41 UTC (rev 25702) @@ -210,7 +210,7 @@ // if autosave dir changed, we should issue to perform an autosave for all dirty and all untitled buffers // to have the autosaves at the new location - if (!autosaveDirectoryOriginal.equals(autosaveDirectory.getText())) + if (!autosaveDirectory.getText().equals(autosaveDirectoryOriginal)) { bufferManager.getDirtyBuffers().forEach(buffer -> buffer.autosave(true)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |