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 258809 - NPE when creating a Profiling Point
Summary: NPE when creating a Profiling Point
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 12:36 UTC by Jiri Sedlacek
Modified: 2016-04-16 01:50 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 Jiri Sedlacek 2016-04-13 12:36:05 UTC
Anagrams.java, open Profiling Points window (no profiling points defined yet), add Timed or Triggered Take Snapshot, NPE:

java.lang.NullPointerException
  at javax.swing.JTable.prepareRenderer(JTable.java:5723)
  at org.netbeans.lib.profiler.ui.swing.ProfilerTable.prepareRenderer(ProfilerTable.java:228)
  at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2114)
  at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2016)
  at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1812)
  at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
  at javax.swing.JComponent.paintComponent(JComponent.java:780)
  at javax.swing.JComponent.paint(JComponent.java:1056)
  at javax.swing.JComponent.paintChildren(JComponent.java:889)
  at javax.swing.JComponent.paint(JComponent.java:1065)
  at javax.swing.JViewport.paint(JViewport.java:728)
  at org.netbeans.lib.profiler.ui.swing.ProfilerTableContainer$8.paint(ProfilerTableContainer.java:307)
  ...
Comment 1 Jiri Sedlacek 2016-04-14 17:18:51 UTC
Regression caused by http://hg.netbeans.org/profiler-main/rev/8ea0d9107664, effectively breaks using the Profiling Points window.
Comment 2 Jiri Sedlacek 2016-04-14 17:21:06 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/11add0a350ce.
Comment 3 Quality Engineering 2016-04-16 01:50:45 UTC
Integrated into 'main-silver', will be available in build *201604160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/11add0a350ce
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #258809 - correct way to identify invalid table row