From 67ff2bb305a2fd9aca9ab32d71fb8c15f75ee7af Mon Sep 17 00:00:00 2001 From: Natasha Sherstneva Date: Thu, 21 Nov 2013 12:35:56 +0000 Subject: [PATCH] PROT-7 fixed ServletProteinSequence --- server/compbio/statistic/CassandraRequester.java | 2 ++ website/ReportSequenceProtein.jsp | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/server/compbio/statistic/CassandraRequester.java b/server/compbio/statistic/CassandraRequester.java index 20ffe0e..ad99868 100755 --- a/server/compbio/statistic/CassandraRequester.java +++ b/server/compbio/statistic/CassandraRequester.java @@ -164,6 +164,8 @@ public class CassandraRequester { res = db.ReadWholeSequence(protIn); else res = db.ReadPartOfSequence(protIn); + if (res == null) + return null; for (StructureProteinPrediction entry : res) { Map pred = entry.getPrediction(); Iterator it = pred.entrySet().iterator(); diff --git a/website/ReportSequenceProtein.jsp b/website/ReportSequenceProtein.jsp index 0459668..5225bf5 100644 --- a/website/ReportSequenceProtein.jsp +++ b/website/ReportSequenceProtein.jsp @@ -13,6 +13,14 @@

Time execution: ${timeExecution} ms

+ + + +

No jobs for sequence ${prot}

+
+ + + @@ -74,3 +82,5 @@
+
+
\ No newline at end of file -- 1.7.10.2