Project

General

Profile

Task #2287

Story #2249: Build Release of d1_common_java

ObjectList.sizeObjectInfoList() can throw null pointer

Added by Rob Nahf about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Robert Waltz
Category:
d1_common_java
Start date:
2012-02-06
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

Subtasks

Task #2288: Create a couple test Methods in dataone_common_javaClosedRobert Waltz

History

#1 Updated by Rob Nahf about 12 years ago

  • Category set to d1_common_java
  • Assignee set to Robert Waltz

when there are no objects returned from CNRead.listObjects() - possible even if objects exist on the system (date filtering, for example) - the objectInfoList property is null.

this is probably a shortcoming with current implementation of code generation.

Desired behavior is for the method to return 0 (zero)

#2 Updated by Rob Nahf about 12 years ago

  • Parent task set to #2249

#3 Updated by Robert Waltz about 12 years ago

  • Status changed from New to In Progress

Seems to be a problem with the runtime overwriting the ObjectInfo attribute with a null of the ObjectList class.

code generation looks correct assuming the runtime was not messing things up. Maybe there should be more checks on the getter/setter methods generated by the JibX CollectionMethodsDecorator.

#4 Updated by Robert Waltz about 12 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)