We may be passing Object in directly in which case we have no super class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2080 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Streamer.java,v 1.3 2002/12/20 23:27:12 mdb Exp $
|
// $Id: Streamer.java,v 1.4 2002/12/21 00:44:03 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.io;
|
package com.threerings.io;
|
||||||
|
|
||||||
@@ -376,7 +376,7 @@ public class Streamer
|
|||||||
{
|
{
|
||||||
// first reflect on our parent's fields if it has such
|
// first reflect on our parent's fields if it has such
|
||||||
Class pclazz = clazz.getSuperclass();
|
Class pclazz = clazz.getSuperclass();
|
||||||
if (!pclazz.equals(Object.class)) {
|
if (pclazz != null && !pclazz.equals(Object.class)) {
|
||||||
getFields(pclazz, flist);
|
getFields(pclazz, flist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user