This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186451 - NullPointerException at org.netbeans.core.startup.preferences.NbPreferences.put
Summary: NullPointerException at org.netbeans.core.startup.preferences.NbPreferences.put
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 213401 220502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-20 18:05 UTC by sipkema
Modified: 2012-11-06 16:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168975


Attachments
stacktrace (639 bytes, text/plain)
2010-05-20 18:05 UTC, sipkema
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sipkema 2010-05-20 18:05:14 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01-279, Java(TM) SE Runtime Environment, 1.6.0_20-b02-279-10M3065
OS: Mac OS X

User Comments:
GUEST: Creating database Proyectos. In servers > Databases > Java DB

GUEST: derby?????http://netbeans.org/kb/docs/ide/java-db_ja.html#starting??????JavaDB???????????
???????????????????????????????????OK]????????

GUEST: http://netbeans.org/kb/docs/ide/java-db.html#starting

sipkema: I tried to create a new Java DB database by selecting "Create Database?" from the context menu available from the "Java DB" node under "Databases" in the "Services" window and this appears to have made de IDE want to derederence a null pointer.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:155)
   at org.netbeans.modules.derby.DerbyDatabasesImpl.registerDatabase(DerbyDatabasesImpl.java:460)
   at org.netbeans.modules.derby.DerbyDatabasesImpl.createDatabase(DerbyDatabasesImpl.java:273)
   at org.netbeans.modules.derby.api.DerbyDatabases.createDatabase(DerbyDatabases.java:144)
   at org.netbeans.modules.derby.RegisterDerby$1.run(RegisterDerby.java:190)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1369)
Comment 1 sipkema 2010-05-20 18:05:20 UTC
Created attachment 99268 [details]
stacktrace
Comment 2 Jiri Rechtacek 2010-05-24 14:23:41 UTC
core-main/rev/875f3c091b22
Comment 3 Quality Engineering 2010-05-25 07:34:02 UTC
Integrated into 'main-golden', will be available in build *201005250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/875f3c091b22
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #186451: NPE at NbPreferences.put
Comment 4 Jaroslav Havlin 2012-10-05 11:21:14 UTC
*** Bug 213401 has been marked as a duplicate of this bug. ***
Comment 5 Ondrej Vrabec 2012-11-06 16:07:58 UTC
*** Bug 220502 has been marked as a duplicate of this bug. ***