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 85862 - NullPointerException when FileObject is renamed
Summary: NullPointerException when FileObject is renamed
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks: 83353
  Show dependency tree
 
Reported: 2006-09-27 11:05 UTC by rmatous
Modified: 2008-12-22 17:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff (1.35 KB, patch)
2006-09-27 11:23 UTC, rmatous
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rmatous 2006-09-27 11:05:18 UTC
NPE at NamingFactory.renameChildren(NamingFactory.java:92)
Comment 1 rmatous 2006-09-27 11:12:53 UTC
The same bug exists also in trunk. Fixed: 
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 new revision: 1.12; previous revision: 1.11
Comment 2 rmatous 2006-09-27 11:15:09 UTC
Fixed in release55_dev:
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 
new revision: 1.5.28.1.2.3.10.1; previous revision: 1.5.28.1.2.3
Comment 3 rmatous 2006-09-27 11:22:39 UTC
Tests proves that it may happen. Because NPE during refactoring may be very
unpleasant I suggest to fix it. Jarda, please review.

QA please test.
Comment 4 rmatous 2006-09-27 11:23:34 UTC
Created attachment 34566 [details]
diff
Comment 5 Jaroslav Tulach 2006-09-27 13:14:01 UTC
Looks pretty safe.
Comment 6 Jaromir Uhrik 2006-09-29 09:29:57 UTC
No regression was found by QA during rename, move, copy  operations so that this
fix seems to be safe and can be integrated into the release55 branch.
Comment 7 rmatous 2006-09-29 09:36:30 UTC
Thanks. Fixed in release55:
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 
new revision: 1.5.28.1.2.4; previous revision: 1.5.28.1.2.3
Comment 8 Jaromir Uhrik 2006-10-02 11:31:02 UTC
Verified in 5.5 Dev build #200610020000 - played with the rename, move, copy 
operations and no problems found.