Fix an error when getting parameters on a method with no debug info

This commit is contained in:
Ben Gruver 2012-12-30 15:26:37 -08:00
parent d521168155
commit a70faf072b

View File

@ -56,7 +56,7 @@ public abstract class DebugInfo implements Iterable<DebugItem> {
public static DebugInfo newOrEmpty(@Nonnull DexBuffer dexBuf, int debugInfoOffset, public static DebugInfo newOrEmpty(@Nonnull DexBuffer dexBuf, int debugInfoOffset,
@Nonnull DexBackedMethodImplementation methodImpl) { @Nonnull DexBackedMethodImplementation methodImpl) {
if (debugInfoOffset == 0) { if (debugInfoOffset == 0) {
new EmptyDebugInfo(methodImpl.method); return new EmptyDebugInfo(methodImpl.method);
} }
return new DebugInfoImpl(dexBuf, debugInfoOffset, methodImpl); return new DebugInfoImpl(dexBuf, debugInfoOffset, methodImpl);
} }