incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r712058 - /incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
Date Fri, 07 Nov 2008 05:17:52 GMT
Author: cziegeler
Date: Thu Nov  6 21:17:48 2008
New Revision: 712058

URL: http://svn.apache.org/viewvc?rev=712058&view=rev
Log:
Improve exception message.

Modified:
    incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java

Modified: incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java?rev=712058&r1=712057&r2=712058&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
(original)
+++ incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
Thu Nov  6 21:17:48 2008
@@ -388,7 +388,11 @@
                     oos.writeInt(propsAsBlob.size());
                     for(final String propName : propsAsBlob) {
                         oos.writeObject(propName);
-                        oos.writeObject(properties.get(propName));
+                        try {
+                            oos.writeObject(properties.get(propName));
+                        } catch (IOException ioe) {
+                            throw new RepositoryException("Unable to serialize property "
+ propName, ioe);
+                        }
                     }
                     oos.close();
                     node.setProperty(binPropertyName, new ByteArrayInputStream(baos.toByteArray()));



Mime
View raw message