Skip to content
Snippets Groups Projects
Commit e55aa3d9 authored by Stéphane  DALLONGEVILLE's avatar Stéphane DALLONGEVILLE
Browse files

small NPE fix

parent ef432dec
No related branches found
No related tags found
No related merge requests found
......@@ -499,7 +499,7 @@ public class ColorPickerThreshold extends PainterManagerSingletonPlugin<ColorPic
private int[] getClickedColor(Point pt) throws SignatureException {
IcyBufferedImage image = getCurrentSequence().getFirstImage();
int[] c = null;
if (image.isInside(pt)) {
if ((image != null) && image.isInside(pt)) {
int x = (int) pt.getX();
int y = (int) pt.getY();
c = ColorSpaceTools.getColorComponentsI_0_255(image, ColorSpaceTools.RGB, x, y);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment