Skip to content

Commit

Permalink
Merge pull request #11 from grimaldello/fix-validation-multiple-of-2
Browse files Browse the repository at this point in the history
Fix validation multiple of 2
  • Loading branch information
NickstaDB authored Aug 1, 2020
2 parents 0977aef + cdaa1dd commit 6385e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nb/deser/SerializationDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
//A single argument must be a hex-ascii encoded byte string
if(args.length == 1) {
//Validation
if(args.length % 2 == 1) {
if(args[0].length() % 2 == 1) {
System.out.println("Error: Data encoded as hex and passed on the command line must have a length that is a multiple of 2.");
return;
}
Expand Down

0 comments on commit 6385e57

Please sign in to comment.