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 188042 - NPE when copying settings from 6.8 (initial startup)
Summary: NPE when copying settings from 6.8 (initial startup)
Status: RESOLVED DUPLICATE of bug 186867
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 10:53 UTC by Joachim Fuchs
Modified: 2010-06-24 11:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Fuchs 2010-06-24 10:53:38 UTC
NPE occurs when NB copies the settings from the previous version. No dialog or message, only the stacktrace in the logfile:

------------------------------------8<-----------------------------------
INFO [org.netbeans.upgrade.AutoUpgrade]: Importing from C:\Dokumente und Einstellungen\JF\.netbeans\6.8 to C:\Dokumente und Einstellungen\JF\.netbeans\6.9
WARNING [org.netbeans.core.startup.Main]
java.lang.NullPointerException
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:102)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyFolder(CopyFiles.java:104)
	at org.netbeans.upgrade.CopyFiles.copyDeep(CopyFiles.java:97)
	at org.netbeans.upgrade.AutoUpgrade.copyToUserdir(AutoUpgrade.java:258)
	at org.netbeans.upgrade.AutoUpgrade.main(AutoUpgrade.java:97)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.netbeans.core.startup.Main$1ImportHandler.run(Main.java:384)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Joachim Fuchs 2010-06-24 10:57:50 UTC
I tried it three times with the same result. When I looked into the config directory there are directories and files but I didn't check wether they are complete. 

After starting 6.9 without importing the settings everything worked fine. From now on the import settings dialog dows not come up.
Comment 2 Jiri Rechtacek 2010-06-24 11:44:27 UTC
Thanks for report. It's a known problem, traced as issue 186867. Already fixed in the next release and also part of upcoming patch of NetBeans 6.9.

*** This bug has been marked as a duplicate of bug 186867 ***