From: Jim Procter Date: Sun, 7 Jul 2013 11:42:59 +0000 (+0100) Subject: JAL-1332 make SSM context discovery safer (particularly in plugin context) X-Git-Tag: Jalview_2_9~229^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7ce72ca7fadf35a249427ecb836b22abb04ab653;p=jalview.git JAL-1332 make SSM context discovery safer (particularly in plugin context) --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index e598120..7415712 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -57,6 +57,10 @@ public class StructureSelectionManager public static StructureSelectionManager getStructureSelectionManager( StructureSelectionManagerProvider context) { + if (context==null) + { + throw new Error("Implementation error. Structure selection manager's context is 'null'", new NullPointerException("SSM context is null")); + } if (instances == null) { instances = new java.util.IdentityHashMap();