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 49013 - NPE: Cannot pass null URL to ClassPathSupport.createResource
Summary: NPE: Cannot pass null URL to ClassPathSupport.createResource
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2004-09-14 16:15 UTC by David Konecny
Modified: 2006-03-24 09:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (1.73 KB, text/plain)
2004-09-14 16:16 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-09-14 16:15:41 UTC
Found in beta2 branch. To reproduce expand in
Options dialog Source Creation and Management ->
Template -> Java Classes and wait couple of
milliseconds.

The problem is reproducible also in trunk in daily
build 200409071800. DefaultClassPathProvider which
returns classpath for non-project files
unfortunately tries to return classpath also for
files from DefaultFileSystem. This problem is
there long time but become visible after changes
in JavaDataObject from 20040907.
Comment 1 David Konecny 2004-09-14 16:16:21 UTC
Created attachment 17626 [details]
NPE
Comment 2 David Konecny 2004-09-14 16:25:01 UTC
Fixed in trunk:
src/org/netbeans/modules/java/j2seplatform/platformdefinition/Defaul
new revision: 1.9; previous revision: 1.8

Reviewed by rmatous, tested by phrebejk. I'm going to put it also to
beta2 branch.
Comment 3 David Konecny 2004-09-14 16:46:07 UTC
Fixed in beta2 branch too:
src/org/netbeans/modules/java/j2seplatform/platformdefinition/DefaultClassPathProvider.java;
new revision: 1.7.4.2; previous revision: 1.7.4.1
Comment 4 Jiri Prox 2005-07-12 11:34:46 UTC
Verified in 4.2 (200507110943)