- Object[] alAndColsel = tree.seqData.getAlignmentAndColumnSelection(av.\r
- getGapCharacter());\r
-\r
- if (alAndColsel != null && alAndColsel[0]!=null)\r
- {\r
- Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);\r
- AlignFrame af = new AlignFrame(al,\r
- av.applet,\r
- "Original Data for Tree",\r
- false);\r
-\r
- af.viewport.setHiddenColumns( (ColumnSelection) alAndColsel[1] );\r
- }\r
+ if(tree.seqData!=null)\r
+ {\r
+ Object[] alAndColsel = tree.seqData.getAlignmentAndColumnSelection(av.\r
+ getGapCharacter());\r
+\r
+ if (alAndColsel != null && alAndColsel[0] != null)\r
+ {\r
+ Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);\r
+ AlignFrame af = new AlignFrame(al,\r
+ av.applet,\r
+ "Original Data for Tree",\r
+ false);\r
+\r
+ af.viewport.setHiddenColumns( (ColumnSelection) alAndColsel[1]);\r
+ }\r
+ }\r
+ else\r
+ System.out.println("Original Tree Data not available");\r