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 42564

Summary: NPE thrown from J2SEProjectProperties.PathParser.decode
Product: java Reporter: Jan Chalupa <jchalupa>
Component: ProjectAssignee: Petr Hrebejk <phrebejk>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows 3.1/NT   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    
Attachments: Exception stack trace

Description Jan Chalupa 2004-04-28 14:30:23 UTC
[dev-200404261800; Sun JDK 1.4.2_04]

I'm trying to open Project Properties for a
project I created a few days ago. I get
NullPointerException from
regex.Matcher.getTextLength (see attachment).
Comment 1 Jan Chalupa 2004-04-28 14:31:02 UTC
Created attachment 14599 [details]
Exception stack trace
Comment 2 Jan Chalupa 2004-04-28 14:47:34 UTC
For a newly created project, opening of Project Properties works fine.
May be some incompatibility between two IDE builds.
Comment 3 Jan Chalupa 2004-04-28 14:56:39 UTC
Disregard. I think I tried to open Properties of a project created in
build from the "refactoring" development branch. I suspect this caused
some incompatibilities. I'll reopen if it comes up again in a more
standard scenario.
Comment 4 Jesse Glick 2004-04-28 19:02:03 UTC
Regardless of who created the project, it is unacceptable for the
project type to react so poorly. It must account for the possibility
that some things are missing from project.properties for whatever
reason. We should even consider "stress-testing" the different project
types by feeding them different kinds of garbage input (syntactically
malformed, missing required information, etc.).
Comment 5 psuk 2004-07-19 16:43:56 UTC
subcomp->project
Comment 6 Petr Hrebejk 2004-09-07 12:58:09 UTC
PathParser now handles null values correctly.

Checking in
java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java,v
 <--  J2SEProjectProperties.java
new revision: 1.25; previous revision: 1.24
done