Oops, that will never be null.

This commit is contained in:
Andrzej Kapolka
2010-08-18 22:43:33 +00:00
parent af0c636517
commit 2471487d2f
@@ -226,7 +226,7 @@ public abstract class FieldMarshaller<T>
field.getDeclaringClass().getAnnotation(Computed.class) : _computed; field.getDeclaringClass().getAnnotation(Computed.class) : _computed;
if (dcomputed != null) { if (dcomputed != null) {
Class<? extends PersistentRecord> sclass = dcomputed.shadowOf(); Class<? extends PersistentRecord> sclass = dcomputed.shadowOf();
if (sclass != null) { if (!PersistentRecord.class.equals(sclass)) {
try { try {
column = sclass.getField(field.getName()).getAnnotation(Column.class); column = sclass.getField(field.getName()).getAnnotation(Column.class);
} catch (NoSuchFieldException e) { } catch (NoSuchFieldException e) {