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 47320 - AssertionError when opening a project
Summary: AssertionError when opening a project
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-08-17 16:00 UTC by Milan Kubec
Modified: 2006-03-24 10:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (3.60 KB, text/plain)
2004-08-17 16:00 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-08-17 16:00:18 UTC
[beta 1 candidate 200408170540, JDK 1.5.0 b63]

I opened the project attached to issue #46992 and
got AssertionError.
Comment 1 Milan Kubec 2004-08-17 16:00:44 UTC
Created attachment 16893 [details]
exc stack trace
Comment 2 Jesse Glick 2004-08-17 17:27:31 UTC
Looks like the D: drive did not exist on your machine at all? Can
handle that. Windows-specific.
Comment 3 Milan Kubec 2004-08-18 08:29:36 UTC
D: drive exists and it's CDROM drive.
Comment 4 Jesse Glick 2004-08-18 22:26:39 UTC
Well that was just a guess. Radek: I have some file like
D:\whatever\something\else and I repeatedly try to get a FileObject
from it (FileUtil.toFileObject) until I get one, each time setting
file = file.getParentFile(). In this case it never gets a file object;
just continues up until parentFile == null, after D:\ I presume. Any
idea why this would happen if the D: drive does exist?

Anyway I will just skip over such files; hopefully it is harmless.
Comment 5 Jesse Glick 2004-08-18 22:50:58 UTC
committed     Up-To-Date  1.2        
ant/project/src/org/netbeans/modules/project/ant/FileChangeSupport.java
Comment 6 Milan Kubec 2004-08-26 14:43:11 UTC
Verified in custom 20040826.