[JAVA-2484] NPE in PojoCodecProvider Created: 05/Apr/17 Updated: 24/Jul/17 Resolved: 06/Apr/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | POJO |
| Description |
|
The check for packages.contains(clazz.getPackage().getName()))) can cause an NPE when the clazz is a primitive, e.g. byte[], because those classes have null packages. |
| Comments |
| Comment by Githook User [ 06/Apr/17 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Fixed NPE in package lookup for primitives
|
| Comment by Ross Lawley [ 05/Apr/17 ] |
|
Good catch - I'm looking forward to Java 2.0 that fixes all these edgecases |