NullPointerException on getCustomAttributes
Brought to you by:
gsunko,
tsgopensource
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.