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 150068 - getResourceAsStream might return null
Summary: getResourceAsStream might return null
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 11:12 UTC by mslama
Modified: 2008-10-14 18:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (1.04 KB, text/plain)
2008-10-14 11:24 UTC, mslama
Details
Module jar for testing, place to nb6.5/modules (317.19 KB, application/octet-stream)
2008-10-14 12:17 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2008-10-14 11:12:50 UTC
It is because incorrect class is used: Installer.class.getClass().getResourceAsStream() but
Installer.class.getResourceAsStream() should be used.
Comment 1 mslama 2008-10-14 11:22:42 UTC
Verification of this fix (or that it does not break anything): Enable registration using
-J-Dnb.registration.enabled=true (if not yet neabled in build), disable networking, start IDE and invoke Help ->
Register. Local (offline) registration page should be diaplyed in browser with URL eg.:
file:///home/mslama/.netbeans-registration/6.5/register.html (of course home directory path might change according to
actual user)).
Comment 2 mslama 2008-10-14 11:24:09 UTC
Created attachment 71741 [details]
Patch
Comment 3 mslama 2008-10-14 11:25:36 UTC
Fixed in main #2a4e10d20793
Comment 4 mslama 2008-10-14 12:17:11 UTC
Created attachment 71757 [details]
Module jar for testing, place to nb6.5/modules
Comment 5 Petr Chytil 2008-10-14 14:39:21 UTC
Fix is verified. This is GO from QE.
Comment 6 mslama 2008-10-14 17:50:21 UTC
Fixed in release65 #666005adcbad
Comment 7 Quality Engineering 2008-10-14 18:18:59 UTC
Integrated into 'main-golden', will be available in build *200810141401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2a4e10d20793
User: Marek Slama <mslama@netbeans.org>
Log: #150068: Fix class invoker of getResourceAsStream.