Menu

#2 NullPointerException on getCustomAttributes

v1.3_-_Java/Dctm
open
nobody
5
2009-04-10
2009-04-10
No

If getCustomAttributes method is called on an object type with not custom attributes, a NullPointerException is thrown when the method runColumnQuery tries to return the query results to getCustomAttributes.

A null check should be added before rulColumnQuery method returns query results. If null, the method should return null. Else the method should return what it is currently returning.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB