]> source.dussan.org Git - jgit.git/commit
Fix NPE in SystemReader in tests 67/152467/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 12 Nov 2019 08:38:04 +0000 (09:38 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 12 Nov 2019 08:39:45 +0000 (09:39 +0100)
commit22e153177ccc0bae2c5a811751b9e37aa8a66ee9
tree5f5f11f2465180f8cfe844aae338631281acfcc3
parentca800b55c8ff1f97afd2f7fe707d54b84f6df9c3
Fix NPE in SystemReader in tests

SystemReader.updateAll() must _not_ test whether the file exists. In
tests at least there are FileBasedConfigs with a null file. Test
configs should (and do) override isOutdated() to deal with this case.

Change-Id: I56303fe0d56afeb9f2203ee807a92c5dcf3809e9
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java