From: jprocter Date: Wed, 12 Nov 2008 15:53:49 +0000 (+0000) Subject: fix minor exception when syncing document with appdata references when no appdata... X-Git-Tag: Release_0.2~30 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a3440159d11615fae0dc30e124c3d906386c5d5f;p=vamsas.git fix minor exception when syncing document with appdata references when no appdata is written. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@490 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/SimpleDocBinding.java b/src/uk/ac/vamsas/client/simpleclient/SimpleDocBinding.java index bb9b3bd..6815706 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimpleDocBinding.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimpleDocBinding.java @@ -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))) {