directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1649206 - /directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java
Date Sat, 03 Jan 2015 14:33:15 GMT
Author: kayyagari
Date: Sat Jan  3 14:33:14 2015
New Revision: 1649206

URL: http://svn.apache.org/r1649206
Log:
fixed an NPE

Modified:
    directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java

Modified: directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java?rev=1649206&r1=1649205&r2=1649206&view=diff
==============================================================================
--- directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java
(original)
+++ directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/LdapResourceProvider.java
Sat Jan  3 14:33:14 2015
@@ -191,7 +191,10 @@ public class LdapResourceProvider implem
                 {
                     String json = SchemaUtil.getSchemaJson( u );
                     JsonSchema schema = JsonSchema.parse( json );
-                    schemas.put( schema.getId(), schema );
+                    if ( schema != null )
+                    {
+                        schemas.put( schema.getId(), schema );
+                    }
                 }
             }
 



Mime
View raw message