Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jun 3, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Fixed in Opal V0.9.9d

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

  • Changed state: Verified

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision b7fb342c42ba.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant