chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1235789 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java
Date Wed, 25 Jan 2012 14:59:42 GMT
Author: fmui
Date: Wed Jan 25 14:59:42 2012
New Revision: 1235789

URL: http://svn.apache.org/viewvc?rev=1235789&view=rev
Log:
- small Workbench fix

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java?rev=1235789&r1=1235788&r2=1235789&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java
Wed Jan 25 14:59:42 2012
@@ -335,6 +335,10 @@ public class ObjectPanel extends InfoPan
     }
 
     public String getDocumentURL(final CmisObject document, final Session session) {
+        if (!(document instanceof Document)) {
+            return null;
+        }
+
         if (session.getBinding().getObjectService() instanceof LinkAccess) {
             return ((LinkAccess) session.getBinding().getObjectService()).loadContentLink(session.getRepositoryInfo()
                     .getId(), document.getId());



Mime
View raw message