Commits

Sam Adams  committed 2079a2e

Fixed zip bug

  • Participants
  • Parent commits ff966dc

Comments (0)

Files changed (1)

File src/main/java/uk/ac/cam/ch/wwmm/chempound/deposit/SwordUtil.java

                 n++;
             }
         }
+        if (n == 0) {
+            return null;
+        }
         out.close();
-        return n == 0 ? null : buffer.toByteArray();
+        return buffer.toByteArray();
     }
 
     private static void attachMetaData(ContentLoadRequest request, EntryPart entryPart) {