mirror of
https://github.com/revanced/smali.git
synced 2025-05-03 16:14:29 +02:00
Fix an error when getting parameters on a method with no debug info
This commit is contained in:
parent
d521168155
commit
a70faf072b
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user