Author: pamarcelot
Date: Mon Jul 1 13:18:29 2013
New Revision: 1498429
URL: http://svn.apache.org/r1498429
Log:
Fixed a potential NPE (one I got once while reading the logs file)
Modified:
directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
Modified: directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java?rev=1498429&r1=1498428&r2=1498429&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
Mon Jul 1 13:18:29 2013
@@ -172,7 +172,8 @@ public class EntryEditorUtils
// Saving the modifications
EntryEditorInput eei = editor.getEntryEditorInput();
IStatus status = eei.saveSharedWorkingCopy( true, editor );
- if ( !status.isOK() )
+
+ if ( ( status == null ) || !status.isOK() )
{
// If save failed, let's keep the modifications in the editor and return
false
return false;
|