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 84510 - FreeConnectTest has NullPointerException
Summary: FreeConnectTest has NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alex Grk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 12:53 UTC by keeskuip
Modified: 2006-09-08 18:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description keeskuip 2006-09-08 12:53:19 UTC
The test.freeconnect.DemoGraphScene gives a NullPointerException.

It doesn't find an icon needed to draw the grid.

The method initGrids should load the following icon :
Image sourceImage = Utilities.loadImage("test/resources/paper_grid17.png");
Comment 1 David Kaspar 2006-09-08 13:24:55 UTC
I have looked at the test and it is working - no NPE from
DemoGraphScene.initGrids method. The test/resources/paper_grid17.png is in the CVS.

Do you have the latest version of sources? Do you have the "paper_grid17.png"
checked out from CVS? Could you send an output/exception log?

I am closing this issue as works-for-me. Feel free to reopen when problem remains.
Comment 2 keeskuip 2006-09-08 13:54:55 UTC
Well, got a nullpointer exception on sources that I just checked out.

In test.freeconnect.DemoGraphScene there is the line :
Image sourceImage =
Utilities.loadImage("/org/a1/dust/visualbpm/resources/paper_grid17.png");

It should be:
Image sourceImage = Utilities.loadImage("test/resources/paper_grid17.png");

Comment 3 Alex Grk 2006-09-08 14:55:59 UTC
corrected  image path. 
Comment 4 David Kaspar 2006-09-08 18:36:46 UTC
Sorry, that was me who had old sources when I was checking particular line - now
I see that it was a bug. Thanks for the report, David