SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-524
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Shay Banon
Reporter: Michael Lossos
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

NullPointerException in ResourcePropertyLookup when no converter is found

Created: 04/Feb/08 12:10 AM   Updated: 04/Feb/08 07:36 AM
Component/s: Compass::Core
Affects Version/s: 2.0 M1
Fix Version/s: 2.0.0 M2

Environment: Compass 2.0M1


 Description  « Hide
If a mapped property does not have an explicit converter and no default converter is found, ResourcePropertyLookup has a NullPointerException. It should probably throw a CompassException indicating that no converter was found for the type.

java.lang.NullPointerException
at org.compass.core.mapping.ResourcePropertyLookup.getValue(ResourcePropertyLookup.java:169)
at org.compass.core.impl.DefaultCompassQueryBuilder.term(DefaultCompassQueryBuilder.java:437)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 04/Feb/08 07:32 AM
Yea, I missed that. In cases there is no specific converter, Compass should default to the "type" converter that is associated with this property.

Michael Lossos added a comment - 04/Feb/08 07:36 AM
Thanks again for the quick fix!