Commits

Pierre-Arnaud Marcelot  committed 8df5b88

Potential fix for DIRSTUDIO-865 (NullPointerException thrown when connecting to Domino 8.5.2FP3 LDAP).

git-svn-id: https://svn.apache.org/repos/asf/directory/studio/trunk@145935613f79535-47bb-0310-9956-ffa450edef68

  • Participants
  • Parent commits 5aee4b9

Comments (0)

Files changed (1)

File plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java

             ISearch.NO_ATTRIBUTES, SearchScope.ONELEVEL, 0, 0, Connection.AliasDereferencingMethod.NEVER,
             Connection.ReferralHandlingMethod.IGNORE, false, null );
         SearchRunnable.searchAndUpdateModel( browserConnection, search, monitor );
+
         ISearchResult[] results = search.getSearchResults();
-        for ( ISearchResult searchResult : results )
+
+        if ( results != null )
         {
-            IEntry entry = searchResult.getEntry();
-            rootDseEntries.put( entry.getDn(), entry );
+            for ( ISearchResult searchResult : results )
+            {
+                IEntry entry = searchResult.getEntry();
+                rootDseEntries.put( entry.getDn(), entry );
+            }
         }
     }
 }