Skip to content

Commit

Permalink
Merge pull request square#639 from square/rice/fix_log_npe
Browse files Browse the repository at this point in the history
Avoid an NPE when logging a null request arg
  • Loading branch information
JakeWharton committed Oct 16, 2014
2 parents 1860dd5 + 0164ba4 commit a9a1f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/RestAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ Request logAndReplaceRequest(String name, Request request, Object[] args) throws
log.log("---> REQUEST:");
}
for (int i = 0; i < args.length; i++) {
log.log("#" + i + ": " + args[i].toString());
log.log("#" + i + ": " + args[i]);
}
}
}
Expand Down

0 comments on commit a9a1f4d

Please sign in to comment.