mirror of
https://github.com/siemens-mobile-hacks/ghidra_scripts.git
synced 2026-11-25 21:47:21 +00:00
Report an unknown platform instead of failing with NPE
This commit is contained in:
parent
a9426677c2
commit
639f3b8fde
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ public class SetupSiemensFullflash extends GhidraScript {
|
|||
if (isInteractive()) {
|
||||
askOptions(options, devices);
|
||||
}
|
||||
if (!PLATFORMS.contains(options.platform)) {
|
||||
if (options.platform == null || !PLATFORMS.contains(options.platform)) {
|
||||
throw new IllegalArgumentException("Platform is unknown: choose it in the dialog or pass platform=" + String.join("|", PLATFORMS));
|
||||
}
|
||||
println("Swilib target: " + options.target + ", platform: " + options.platform);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue