String modelConfVer = idx_mqualtypever < 1 ? null
: (String) restable.getValueAt(row, idx_mqualtypever);
- String tftype = modelConfType.toUpperCase(Locale.ROOT);
+ String tftype = (modelConfType==null) ? null: modelConfType.toUpperCase(Locale.ROOT);
TFType tempfacType = (tftype==null) ? null : TFType.valueOf(tftype);
if (tftype==null || "".equals(tftype) || TFType.valueOf(tftype) == null )
{
// TODO maintain mappings between confidence types and tempfactypes
- if (typeColumn.toLowerCase(Locale.ROOT).startsWith("alpha") || tftype.startsWith("ALPHAFOLD")) {
+ if (typeColumn.toLowerCase(Locale.ROOT).startsWith("alpha") || (tftype!=null && tftype.startsWith("ALPHAFOLD"))) {
tftype = TFType.PLDDT.toString();
modelConfVer = null;
}