Skip to content
Snippets Groups Projects
Commit c3442a86 authored by tcarver's avatar tcarver
Browse files

fix for old style header

parent 99a7ef3a
No related branches found
No related tags found
No related merge requests found
...@@ -402,7 +402,8 @@ public class VCFFilter extends JFrame ...@@ -402,7 +402,8 @@ public class VCFFilter extends JFrame
{ {
final HeaderLine hLine = headerLineList.get(i); final HeaderLine hLine = headerLineList.get(i);
final String type = hLine.getType(); final String type = hLine.getType();
if (type.equals("String"))
if (type != null && type.equals("String"))
continue; continue;
int num = hLine.getNumber(); int num = hLine.getNumber();
...@@ -446,7 +447,7 @@ public class VCFFilter extends JFrame ...@@ -446,7 +447,7 @@ public class VCFFilter extends JFrame
for (int j = 0; j < num; j++) for (int j = 0; j < num; j++)
{ {
if (type.equals("Integer")) if (type != null && type.equals("Integer"))
{ {
final TextFieldInt min = new TextFieldInt(); final TextFieldInt min = new TextFieldInt();
min.setColumns(8); min.setColumns(8);
...@@ -460,7 +461,7 @@ public class VCFFilter extends JFrame ...@@ -460,7 +461,7 @@ public class VCFFilter extends JFrame
max.addKeyListener(new FilterListener(hLine, false, j, num)); max.addKeyListener(new FilterListener(hLine, false, j, num));
min.addKeyListener(new FilterListener(hLine, true, j, num)); min.addKeyListener(new FilterListener(hLine, true, j, num));
} }
else if (type.equals("Float")) else if (type != null && type.equals("Float"))
{ {
TextFieldFloat min = new TextFieldFloat(); TextFieldFloat min = new TextFieldFloat();
min.setColumns(8); min.setColumns(8);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment