Permalink
Browse files

[JBMAR-147] Fix NPE on custom serializability checker

  • Loading branch information...
1 parent 421e982 commit 0024e13357607d60ca98691b2c351393f851f072 @dmlloyd dmlloyd committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 river/src/main/java/org/jboss/marshalling/river/RiverMarshaller.java
@@ -994,7 +994,7 @@ private RiverObjectOutputStream createObjectOutputStream() throws IOException {
protected void doWriteSerializableObject(final SerializableClass info, final Object obj, final Class<?> objClass) throws IOException {
final Class<?> superclass = objClass.getSuperclass();
- if (serializabilityChecker.isSerializable(superclass)) {
+ if (superclass != null && serializabilityChecker.isSerializable(superclass)) {
doWriteSerializableObject(registry.lookup(superclass), obj, superclass);
}
if (info.hasWriteObject()) {

0 comments on commit 0024e13

Please sign in to comment.