Issue Details (XML | Word | Printable)

Key: AXIS-2628
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Brian McDonald
Votes: 0
Watchers: 0
Operations

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

NullPointerException at BeanDeserializer.java:304

Created: 12/Feb/07 11:14 PM   Updated: 12/Feb/07 11:14 PM
Return to search
Component/s: Serialization/Deserialization
Affects Version/s: 1.4
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
Caused by: java.lang.NullPointerException at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:304)


The if block doesn't protect against the dSer variable from being null which will cause a NPE when it tries to call dSer.registerValueTarget:

                if (!((dSer != null) && (dSer instanceof ArrayDeserializer))) {
                    collectionIndex++;
                    dSer.registerValueTarget(new BeanPropertyTarget(value,
                            propDesc, collectionIndex));


I think the if block should be changed to:


                if ( dSer != null && !(dSer instanceof ArrayDeserializer)) {


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.