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 67023 - NPE when saving options
Summary: NPE when saving options
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2005-10-18 09:13 UTC by Jiri Skrivanek
Modified: 2005-10-20 07:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (946 bytes, text/plain)
2005-10-18 09:13 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-10-18 09:13:00 UTC
It started to happen in build 20051017-1514 that NullPointerException is thrown
when OK button is pressed. It appears only in tests, so it is needs probably
some synchronization to prevent it. It is high priority issue because it blocks
commit validation suite. Test do the following:

- open Options
- set Swing HTML Browser
- select HTTP Proxy radio button
- type 'webcache' in Proxy Host
- type '8080' in Proxy Port
- click OK button and exception is thrown
Comment 1 Jiri Skrivanek 2005-10-18 09:13:30 UTC
Created attachment 26063 [details]
Stack trace
Comment 2 Jesse Glick 2005-10-18 17:05:18 UTC
Why is AntCustomizer storing anything if nothing was changed?
Comment 3 Jesse Glick 2005-10-18 17:18:43 UTC
applyChanges() is getting called when update() has not been called.

Is there any actual Javadoc or other specification which describes in which
order various methods are called? I don't see any. This is a critical part of
the specification of the controller interface that is missing.
Comment 4 Jan Jancura 2005-10-19 09:16:15 UTC
fixed in trunk and JavaDoc updated:

IDE:-------------------------------------------------
IDE: [19.10.05 10:03] Commiting started
Checking in AntCustomizer.java;
/cvs/ant/src/org/apache/tools/ant/module/AntCustomizer.java,v  <-- 
AntCustomizer.java
new revision: 1.15; previous revision: 1.14
done
IDE: [19.10.05 10:04] Commiting finished
IDE:-------------------------------------------------
IDE: [19.10.05 10:15] Commiting started
Checking in OptionsCategory.java;
/cvs/core/options/src/org/netbeans/spi/options/OptionsCategory.java,v  <-- 
OptionsCategory.java
new revision: 1.9; previous revision: 1.8
done
IDE: [19.10.05 10:15] Commiting finished
Comment 5 Jiri Skrivanek 2005-10-20 07:44:26 UTC
Verified.