Skip to content

Commit 9e35fc3

Browse files
committed
IRSA-347 VOTable parsing related bug fix: precision can be string
1 parent 9897bb1 commit 9e35fc3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/firefly/java/edu/caltech/ipac/util/DataType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public DataType(String keyName,
7272
_keyName = keyName;
7373
_prefix = null;
7474
_defTitle = defTitle;
75-
_importance= importance;
75+
_importance= importance==null?Importance.HIGH:importance;
7676
_type= type;
7777
_units= units;
7878
_mayBeNull = mayBeNull;

src/firefly/java/edu/caltech/ipac/util/VoTableUtil.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ private static DataGroup convertToDataGroup(StarTable table, boolean headerOnly)
200200
precision = Integer.parseInt(cinfo.getAuxDatum(VOStarTable.PRECISION_INFO).toString());
201201
}catch (NumberFormatException e){
202202
// problem with VOTable vinfo precision: should be numeric - keep default min precision
203-
continue;
204203
}
205204
}
206205
DataType dt = new DataType(cinfo.getName(), cinfo.getName(),

0 commit comments

Comments
 (0)