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 173183 - NPE Passed null to FileOwnerQuery.getOwner(FileObject)
Summary: NPE Passed null to FileOwnerQuery.getOwner(FileObject)
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2009-09-28 10:18 UTC by Alexandr Scherbatiy
Modified: 2009-10-27 15:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (241.01 KB, text/plain)
2009-09-28 10:20 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-28 10:18:53 UTC
netbeans-trunk-nightly-200909221401-javafx-full.zip 

  Product Version         = NetBeans IDE Dev (Build 200909221401) (#038a2843d59a)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


I create a file and set a breakpoint. After that I removed the line, copied the code to the editor:
---------------------------------
var a = 10;
var b = 20.5;
var c = a + b;
---------------------------------

and tried to set a breakpoint. 

The NPE pops up:

java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
	at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:94)
	at org.netbeans.modules.javafx.debugger.utils.Utils.getFXPath(Utils.java:89)
	at org.netbeans.modules.javafx.debugger.breakpoints.JavaFXLineBreakpoint.<init>(JavaFXLineBreakpoint.java:56)
	at org.netbeans.modules.javafx.debugger.breakpoints.JavaFXLineBreakpoint.create(JavaFXLineBreakpoint.java:82)
	at org.netbeans.modules.javafx.debugger.actions.JavaFXToggleActionProvider.doAction(JavaFXToggleActionProvider.java:58)
	at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:112)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 1 Alexandr Scherbatiy 2009-09-28 10:20:03 UTC
Created attachment 88434 [details]
IDE log file
Comment 2 Alexandr Scherbatiy 2009-09-28 10:22:51 UTC
Probably it is because the file was renamed before.
Comment 3 Michal Skvor 2009-10-12 11:49:19 UTC
Can't reproduce.
Comment 4 Alexandr Scherbatiy 2009-10-27 15:32:06 UTC
Unable to reproduce in build 200910261401