]> source.dussan.org Git - jgit.git/commit
Handle null in ProgressMonitor setters 80/49980/2
authorJonathan Nieder <jrn@google.com>
Wed, 10 Jun 2015 20:59:48 +0000 (13:59 -0700)
committerJonathan Nieder <jrn@google.com>
Thu, 11 Jun 2015 17:44:20 +0000 (10:44 -0700)
commitbbfd9b0e5fc0160f5a1034ce23958a8040e88748
tree3f85ccd961f175256314d2b5bc54b25845e6c3a2
parente70cf61eb61e54baafbba9a16ec613304ace6739
Handle null in ProgressMonitor setters

These commands' monitor fields can never be null unless someone passes
null to setProgressMonitor.  Anyone passing null probably meant to
disable the ProgressMonitor, so do that (by falling back to
NullProgressMonitor.INSTANCE) instead of saving a null and eventually
producing NullPointerException.

Change-Id: I63ad93ea8ad669fd333a5fd40880e7583ba24827
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/DiffCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java