fix minor exception when syncing document with appdata references when no appdata...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 12 Nov 2008 15:53:49 +0000 (15:53 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 12 Nov 2008 15:53:49 +0000 (15:53 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@490 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/SimpleDocBinding.java

index bb9b3bd..6815706 100644 (file)
@@ -124,7 +124,7 @@ public class SimpleDocBinding {
     if (docrefs==null)
       return null;
     Vector entries = oReader.getExtraEntries();
-    if (entries!=null && docrefs.size()>0) {
+    if (entries!=null && entries.size()>0 && docrefs.size()>0) {
       int i=0, j=entries.size();
       do {
         if (!docrefs.contains(entries.get(i))) {