directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r529988 - in /directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor: ExtendedOperationDetailsPage.java InterceptorDetailsPage.java PartitionDetailsPage.java
Date Wed, 18 Apr 2007 11:43:26 GMT
Author: pamarcelot
Date: Wed Apr 18 04:43:26 2007
New Revision: 529988

URL: http://svn.apache.org/viewvc?view=rev&rev=529988
Log:
Fixed potentials NPE.

Modified:
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationDetailsPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorDetailsPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionDetailsPage.java

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationDetailsPage.java?view=diff&rev=529988&r1=529987&r2=529988
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationDetailsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationDetailsPage.java
Wed Apr 18 04:43:26 2007
@@ -176,7 +176,10 @@
      */
     public void commit( boolean onSave )
     {
-        input.setClassType( classTypeText.getText() );
+        if ( input != null )
+        {
+            input.setClassType( classTypeText.getText() );
+        }
     }
 
 

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorDetailsPage.java?view=diff&rev=529988&r1=529987&r2=529988
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorDetailsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorDetailsPage.java
Wed Apr 18 04:43:26 2007
@@ -182,8 +182,11 @@
      */
     public void commit( boolean onSave )
     {
-        input.setName( nameText.getText() );
-        input.setClassType( classText.getText() );
+        if ( input != null )
+        {
+            input.setName( nameText.getText() );
+            input.setClassType( classText.getText() );
+        }
     }
 
 

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionDetailsPage.java?view=diff&rev=529988&r1=529987&r2=529988
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionDetailsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionDetailsPage.java
Wed Apr 18 04:43:26 2007
@@ -619,11 +619,14 @@
      */
     public void commit( boolean onSave )
     {
-        input.setName( nameText.getText() );
-        input.setCacheSize( Integer.parseInt( cacheSizeText.getText() ) );
-        input.setSuffix( suffixText.getText() );
-        input.setEnableOptimizer( enableOptimizerCheckbox.getSelection() );
-        input.setSynchronizationOnWrite( synchOnWriteCheckbox.getSelection() );
+        if ( input != null )
+        {
+            input.setName( nameText.getText() );
+            input.setCacheSize( Integer.parseInt( cacheSizeText.getText() ) );
+            input.setSuffix( suffixText.getText() );
+            input.setEnableOptimizer( enableOptimizerCheckbox.getSelection() );
+            input.setSynchronizationOnWrite( synchOnWriteCheckbox.getSelection() );
+        }
     }
 
 



Mime
View raw message