From 44f0c3beaf6be54426e64e9cac3b924d7ff868a0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 29 Aug 2012 15:56:05 +0100 Subject: [PATCH] JAL-48 patch NPE when encountering an alignment window on desktop which has not been saved --- src/jalview/gui/AlignFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index a50e724..9818e6b 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -880,7 +880,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, for (int i = 0; i < frames.length; i++) { if (frames[i] instanceof AlignFrame && frames[i] != this - && ((AlignFrame) frames[i]).fileName.equals(fileName)) + && ((AlignFrame) frames[i]).fileName!=null && ((AlignFrame) frames[i]).fileName.equals(fileName)) { try { -- 1.7.10.2