diff --git a/jode/jode/type/ArrayType.java b/jode/jode/type/ArrayType.java index 221a20b..42a51cc 100644 --- a/jode/jode/type/ArrayType.java +++ b/jode/jode/type/ArrayType.java @@ -175,8 +175,6 @@ public class ArrayType extends ReferenceType { * @return the middle type, or null if it is not necessary. */ public Type getCastHelper(Type fromType) { - if (fromType.getTypeCode() == TC_NULL) - return this; Type hintType = fromType.getHint(); switch (hintType.getTypeCode()) { case TC_ARRAY: diff --git a/jode/jode/type/ClassInterfacesType.java b/jode/jode/type/ClassInterfacesType.java index 8e08c3c..0261ae7 100644 --- a/jode/jode/type/ClassInterfacesType.java +++ b/jode/jode/type/ClassInterfacesType.java @@ -435,8 +435,6 @@ public class ClassInterfacesType extends ReferenceType { * @return the middle type, or null if it is not necessary. */ public Type getCastHelper(Type fromType) { - if (fromType.getTypeCode() == TC_NULL) - return this; Type hintType = fromType.getHint(); switch (hintType.getTypeCode()) { case TC_ARRAY: