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.
Summary: | NPE while creating a web project | ||
---|---|---|---|
Product: | cnd | Reporter: | Lukas Jungmann <jungi> |
Component: | Project | Assignee: | Thomas Preisler <thp> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | blaha |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Lukas Jungmann
2007-08-03 13:25:42 UTC
This bug has impact on NB+packs and should be fixed for CND 551U1 I cannot reproduce the bug. I don't see the web app project update on hotfixes UC. But by looking at our code I can see that it can fail as documented in the attached stack trace. Our code do something like: 158 File file = FileUtil.toFile((FileObject)target); ... 160 Item item = makeConfigurationDescriptor.findProjectItemByPath(file.getAbsolutePath()); but file is not guarantied to be != null so it would throw an npe in line 160 if file == null. I will make another attempt to reproduce, but if I cannot, I will add a null check and return null (means not found), and ask you to verify the fix. Fixed and committed to release551u1 branch. verified in 5.5.1_u1 CND build (20070808). |