Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing a Null Pointer Exception when using Pixel Inspection Tool #226

Open
scuniff opened this issue Sep 8, 2023 · 0 comments
Open

Seeing a Null Pointer Exception when using Pixel Inspection Tool #226

scuniff opened this issue Sep 8, 2023 · 0 comments

Comments

@scuniff
Copy link

scuniff commented Sep 8, 2023

ImageJ 1.54f

Exception in thread "Pixel Inspector" java.lang.NullPointerException
at ij.plugin.tool.PixelInspector.addImageListeners(PixelInspectionTool.java:238)
at ij.plugin.tool.PixelInspector.writeNumbers(PixelInspectionTool.java:351)
at ij.plugin.tool.PixelInspector.run(PixelInspectionTool.java:330)
at java.lang.Thread.run(Thread.java:748)

Steps:

  1. Open up Fiji
  2. Select Pixel Inspection Tool on Toolbar
  3. Open up File->Open Samples->Fluorecsnt Cells
  4. Left click anywhere on Image
    a. Pixle Inspection Window pops up
  5. Close Fluorecsnt Cells window
  6. Open up again File->Open Samples->Fluorecsnt Cells
    a. Console window with Null Pointer Exception pops up

See screen recording:

NullPtr-PixelInspectionTool.mp4

PixelInspectionTool.java from GitHub:

https://github.com/imagej/ImageJ/blob/master/ij/plugin/tool/PixelInspectionTool.java

This might be the offending code if variable win is null at line 238.

	if (win == null) close();
	canvas = win.getCanvas();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant