X Tutup
Skip to content

Commit ae107a5

Browse files
author
Marcus Linke
committed
Fix issue #293
1 parent 7e56f36 commit ae107a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/dockerjava/jaxrs/PushImageCmdExec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public PushImageCmdExec(WebTarget baseResource) {
2929
private String name(PushImageCmd command) {
3030
String name = command.getName();
3131
AuthConfig authConfig = command.getAuthConfig();
32-
return name.contains("/") ? name : authConfig.getUsername();
32+
return (name.contains("/") || authConfig == null) ? name : authConfig.getUsername();
3333
}
3434

3535
@Override

0 commit comments

Comments
 (0)
X Tutup