[JAVA-1208] NPE in com.mongodb.DBCollection.genIndexName Created: 10/May/14  Updated: 27/May/14  Resolved: 27/May/14

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.12.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tal Liron Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 64bit, Oracle JDK 8



 Description   

Here is the stack trace:

NFO | jvm 1 | 2014/05/10 07:42:00 | Caused by: java.lang.NullPointerException
INFO | jvm 1 | 2014/05/10 07:42:00 | at com.mongodb.DBCollection.genIndexName(DBCollection.java:693)
INFO | jvm 1 | 2014/05/10 07:42:00 | at com.mongodb.DBCollection.defaultOptions(DBCollection.java:678)
INFO | jvm 1 | 2014/05/10 07:42:00 | at com.mongodb.DBCollection.ensureIndex(DBCollection.java:603)



 Comments   
Comment by Tal Liron [ 24/May/14 ]

Please close: the problem was that I using JavaScript (Rhino) and sending the wrong kind of object to the API.

Comment by Jeffrey Yemin [ 10/May/14 ]

Is your code passing a null DBObject to ensureIndex?

Generated at Thu Feb 08 08:54:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.