potential NPE in Base64Command (#1993)

pull/2004/head
XenoAmess 3 years ago committed by GitHub
parent da0ab96ea8
commit d88a2e93d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,8 +87,13 @@ public class Base64Command extends AnnotatedCommand {
}
// 确认输入
if (file == null && this.input != null) {
file = input;
if (file == null) {
if (this.input != null) {
file = input;
} else {
process.end(-1, ": No file, nor input");
return;
}
}
File f = new File(file);

Loading…
Cancel
Save