diff --git a/MetFragLib/src/main/java/de/ipbhalle/metfraglib/database/LocalSDFDatabase.java b/MetFragLib/src/main/java/de/ipbhalle/metfraglib/database/LocalSDFDatabase.java index 9075134..f5dff39 100644 --- a/MetFragLib/src/main/java/de/ipbhalle/metfraglib/database/LocalSDFDatabase.java +++ b/MetFragLib/src/main/java/de/ipbhalle/metfraglib/database/LocalSDFDatabase.java @@ -121,7 +121,9 @@ protected void readCandidatesFromFile() throws Exception { while(keys.hasNext()) { String curKey = keys.next(); if(!this.candidates.get(i).hasDefinedProperty(curKey)) this.candidates.get(i).setProperty(curKey, "-"); - if(((String)this.candidates.get(i).getProperty(curKey)).equals("")) this.candidates.get(i).setProperty(curKey, "-"); + Object property = this.candidates.get(i).getProperty(curKey); + if (property instanceof String && ((String) property).isEmpty()) + this.candidates.get(i).setProperty(curKey, "-"); } } diff --git a/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml b/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml index 90b9ab9..8662386 100644 --- a/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml +++ b/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml @@ -388,7 +388,7 @@ cellspacing="4" cellpadding="4" styleClass="subPanel" rendered="#{metFragWebBean.suspectListInclusionFilterEnabled}"> diff --git a/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml b/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml index 8d546db..d4ac062 100644 --- a/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml +++ b/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml @@ -146,7 +146,7 @@ @@ -245,7 +245,7 @@ cellspacing="4" cellpadding="4" styleClass="subPanel" rendered="#{metFragWebBean.suspectListInclusionScoreEnabled}"> diff --git a/MetFragWeb/src/main/webapp/includes/databasePrime.xhtml b/MetFragWeb/src/main/webapp/includes/databasePrime.xhtml index 32a5807..d391204 100644 --- a/MetFragWeb/src/main/webapp/includes/databasePrime.xhtml +++ b/MetFragWeb/src/main/webapp/includes/databasePrime.xhtml @@ -57,7 +57,7 @@