Fix NullPointerException if source file is not set in lexer

This commit is contained in:
Ben Gruver 2012-09-24 18:22:02 -07:00
parent a3dce1f48c
commit a8be1b4c80

View File

@ -74,6 +74,9 @@ import static org.jf.smali.smaliParser.*;
}
public String getSourceName() {
if (sourceFile == null) {
return "";
}
try {
return PathUtil.getRelativeFile(new File("."), sourceFile).getPath();
} catch (IOException ex) {