khaerul10056 / opal

Automatically exported from code.google.com/p/opal
0 stars 0 forks source link

OpalItem: setData(String,Object) failes with NullPointerException #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a DualList
2. Add DualListItem item
3. Set data on item, e.g. item.setData("MyKey","MyValue")
4. NPE is thrown

What is the expected output? What do you see instead?
Expected: Data is attached to the item
Result: NullPointerException
java.lang.NullPointerException
    at org.mihalis.opal.OpalItem.setData(Unknown Source)

What version of the product are you using? On what operating system?
opal-0.9.9c

Please provide any additional information below.
The OpelItem, the DLItem extends provides methods to set and get data, but does 
not initialize the map the data is stored in. As a result, the NPE is thrown. 
See code at line 33 of OpelItem
https://code.google.com/a/eclipselabs.org/p/opal/source/browse/src/main/java/org
/mihalis/opal/OpalItem.java#33

Original issue reported on code.google.com by benjamin...@gmail.com on 9 Apr 2014 at 10:05

GoogleCodeExporter commented 8 years ago
Fixed in Opal V0.9.9d

Original comment by laurent....@gmail.com on 13 Apr 2014 at 8:04

GoogleCodeExporter commented 8 years ago
This issue was closed by revision b7fb342c42ba.

Original comment by laurent....@gmail.com on 13 Apr 2014 at 8:20