PROT-7 fixed ServletProteinSequence
authorNatasha Sherstneva <n.shertneva@gmail.com>
Thu, 21 Nov 2013 12:35:56 +0000 (12:35 +0000)
committerNatasha Sherstneva <n.shertneva@gmail.com>
Thu, 21 Nov 2013 12:35:56 +0000 (12:35 +0000)
server/compbio/statistic/CassandraRequester.java
website/ReportSequenceProtein.jsp

index 20ffe0e..ad99868 100755 (executable)
@@ -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<String,String> pred = entry.getPrediction();
                        Iterator it = pred.entrySet().iterator();
index 0459668..5225bf5 100644 (file)
        </c:otherwise>
 </c:choose>
 <h3>Time execution: ${timeExecution} ms</h3>
+<c:choose>
+
+       <c:when test="${result == null}">
+               <h3>No jobs for sequence ${prot} </h3>
+       </c:when>
+       <c:otherwise>
+       
+       
 <table border="1" style="border-collapse: collapse; white-space: nowrap">
        <c:choose>
                <c:when test="${search == 'Search counter'}">
@@ -74,3 +82,5 @@
        </c:choose>
        </tbody>
 </table>
+</c:otherwise>
+</c:choose>
\ No newline at end of file