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 125259 - NullPointerException at org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings.getPeriod
Summary: NullPointerException at org.netbeans.modules.autoupdate.ui.actions.Autoupdate...
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 09:28 UTC by Martin Krauskopf
Modified: 2008-01-15 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE.txt (2.42 KB, text/plain)
2008-01-15 09:28 UTC, Martin Krauskopf
Details
Ups, ignore previous one. This one is the right one. (2.72 KB, text/plain)
2008-01-15 09:29 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2008-01-15 09:28:12 UTC
Happens whenever I try to go to the plugin manager. Fresh build. See attachment. *Not* fresh userdir.
Comment 1 Martin Krauskopf 2008-01-15 09:28:44 UTC
Created attachment 55057 [details]
NPE.txt
Comment 2 Martin Krauskopf 2008-01-15 09:29:38 UTC
Created attachment 55058 [details]
Ups, ignore previous one. This one is the right one.
Comment 3 Jiri Rechtacek 2008-01-15 09:32:00 UTC
I guess it was fixed 2008/01/14. Do you have 20080115 build?
Comment 4 Martin Krauskopf 2008-01-15 09:59:25 UTC
This morning, two hours ago. 'cvs up' in $NB_SRC/autoupdate updates nothing, so I have freshest trunk. Anyway I've
(finally) deleted my userdir and NPE has gone. So probably OK to downgrade, close, .... Sure, up to you...
Comment 5 Martin Krauskopf 2008-01-15 10:09:16 UTC
I would say that problem was somewhere else then in:

  err.log (Level.FINEST, "getPeriod () returns " + getPreferences ().getInt (PROP_PERIOD, defaultCheckInterval));

defaultChekcInterval to be null (which is not possible now). According to the age of my userdir it could be in
getPreferences() to be null as well....

It is something really odd, since when I put:

  System.out.println("getPreferences: " + getPreferences());
  System.out.println("err: " + err);

before the culprit line "err.log...." the NPE has gone as well with the same configuration. Huh? Closing until somebody
else also reproduce this. Might be some oddity on my system(?)

If it happen again with fresh userdir, I'll reopen.