JAL-1725 first version of Jetty server / chimera selection listener
[jalview.git] / src / jalview / util / MappingUtils.java
index df21355..f2213ad 100644 (file)
@@ -494,6 +494,12 @@ public final class MappingUtils
     Set<AlignedCodonFrame> codonFrames = protein.getAlignment()
             .getCodonFrames();
     ColumnSelection mappedColumns = new ColumnSelection();
+
+    if (colsel == null)
+    {
+      return mappedColumns;
+    }
+
     char fromGapChar = mapFrom.getAlignment().getGapCharacter();
 
     // FIXME allow for hidden columns