History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SMACK-176
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Thiago Rocha Camargo
Reporter: Thiago Rocha Camargo
Votes: 0
Watchers: 0
Operations

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

Incorrect property initialization

Created: 10/05/06 04:58 PM   Updated: 10/10/06 05:04 PM  Due: 10/05/06
Component/s: Core
Affects Version/s: 3.0.0 Beta 1
Fix Version/s: 3.0.0 Beta 1

Time Tracking:
Original Estimate: 10 minutes
Original Estimate - 10 minutes
Remaining Estimate: 10 minutes
Remaining Estimate - 10 minutes
Time Spent: Not Specified
Remaining Estimate - 10 minutes

File Attachments: 1. Text File nullException.patch (0.6 kb)

Environment: Plataform-Independent

Support Plan Customer Issue: No
Resolution Date: 10/05/06 09:25 PM
Acceptance Test - Add?: No
Acceptance Test - Entry:
/**
  • JUnit Test Case
  • Check the parser with an xml with the null error type.
    */
    public void testEmptyErrorType()
    Unknown macro: { // Make the XML to test String xml = "<error code='404'>" + "<item-not-found xmlns='urn}


 Description  « Hide
IQ type property is being initialized with null value. It will cause an unhandled exception in the method.
Initialising it with a blank String solves the issue, as it throws an IllegalArgumentException if no value is found in the IQ.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Thiago Rocha Camargo - 10/05/06 05:00 PM
A simple fix.

Thiago Rocha Camargo - 10/05/06 09:25 PM
A simple fix

Thiago Rocha Camargo - 10/10/06 05:04 PM
Assigned a default value to the "type" instance variable. SMACK-176