X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=datadb%2Fcompbio%2Fcassandra%2FProteinBean.java;fp=datadb%2Fcompbio%2Fcassandra%2FProteinBean.java;h=80f111bea773e1fa29dac2655c2751797140b755;hb=c7b32cc1f17ec534d5b98ed27cc2f3a4b52daad6;hp=d2b7cb7379e8d5494b9485294d6e1283067face9;hpb=de3f241669f5f2bfd8258e87cbd0b19402950f32;p=proteocache.git diff --git a/datadb/compbio/cassandra/ProteinBean.java b/datadb/compbio/cassandra/ProteinBean.java index d2b7cb7..80f111b 100644 --- a/datadb/compbio/cassandra/ProteinBean.java +++ b/datadb/compbio/cassandra/ProteinBean.java @@ -20,6 +20,8 @@ public class ProteinBean implements PredictionIndex{ } public void setPredictions(Map pred) { + if (predictions == null) + predictions = new LinkedHashMap(); for (String index : predIndex) { this.predictions.put(index, pred.get(index)); }