mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
GP-4903: Fix null in dialog issue.
This commit is contained in:
parent
e59a6ed7ea
commit
b9c467e2e4
@ -383,7 +383,13 @@ public abstract class ScriptAttributesParser {
|
||||
String key = ent.getKey();
|
||||
if (key.startsWith(PREFIX_ENV)) {
|
||||
String varName = key.substring(PREFIX_ENV.length());
|
||||
env.put(varName, Objects.toString(ent.getValue().get(args).val()));
|
||||
ValStr<?> val = ent.getValue().get(args);
|
||||
if (val == null || val.val() == null) {
|
||||
env.put(varName, "");
|
||||
}
|
||||
else {
|
||||
env.put(varName, Objects.toString(val.val()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user