Merge branch 'servlets' of https://source.jalview.org/git/proteocache into servlets
[proteocache.git] / datadb / compbio / cassandra / ProteinBean.java
index d2b7cb7..80f111b 100644 (file)
@@ -20,6 +20,8 @@ public class ProteinBean implements PredictionIndex{
        }
        
        public void setPredictions(Map<String,String> pred) {
+               if (predictions == null)
+                       predictions = new LinkedHashMap<String,String>();       
                for (String index : predIndex) {
                        this.predictions.put(index, pred.get(index));
                }