mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
Fix NullPointerException if source file is not set in lexer
This commit is contained in:
parent
a3dce1f48c
commit
a8be1b4c80
@ -74,6 +74,9 @@ import static org.jf.smali.smaliParser.*;
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getSourceName() {
|
public String getSourceName() {
|
||||||
|
if (sourceFile == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return PathUtil.getRelativeFile(new File("."), sourceFile).getPath();
|
return PathUtil.getRelativeFile(new File("."), sourceFile).getPath();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user