Skip to content

Commit

Permalink
npe
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Feb 28, 2024
1 parent 064b96c commit 5061758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capfile/src/main/java/pro/javacard/capfile/CAPFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public Optional<Path> getFile() {
}

public byte[] getComponent(String name) {
return entries.get(pkg2jcdir(getPackageName()) + name + ".cap").clone();
byte[] c = entries.get(pkg2jcdir(getPackageName()) + name + ".cap");
return c == null ? null : c.clone();
}

public byte[] getMetaInfEntry(String name) {
Expand Down

0 comments on commit 5061758

Please sign in to comment.