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 43224 - NPE when the moved project was opened
Summary: NPE when the moved project was opened
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-13 16:26 UTC by pzajac
Modified: 2006-03-24 09:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stacktrace (3.17 KB, text/plain)
2004-05-13 16:26 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2004-05-13 16:26:30 UTC
[2004051111800]
Steps to reproduction:
1) create a folder X
2) create a j2se project A in the folder X
3) create a j2se project B in the folder X
4) add the project A  to the project B classpath
5) close the projects
6) close ide
7) rename folder X to Y
8) open project Y/A 

the NPE was thrown.
Comment 1 pzajac 2004-05-13 16:26:59 UTC
Created attachment 14850 [details]
exception stacktrace
Comment 2 Jesse Glick 2004-05-13 19:35:40 UTC
Sorry, can't reproduce.

I can put in some additional error checks into some classes to help
diagnose it in the future, but I can't even guess what would cause this.

Note - if you open y/b, you will need to adjust the path to a from x/a
to y/a in y/b/nbproject/private/private.properties. This is only true
if you were not using version control and so .../x/a was stored as an
absolute path; if the projects were inside some VCS working dir this
should not be necessary because "../a" is stored as the path to a from b.
Comment 3 pzajac 2004-06-02 13:16:07 UTC
v