diff options
author | Max Hohenegger | 2015-07-27 10:44:14 +0000 |
---|---|---|
committer | Matthias Sohn | 2015-08-15 23:16:56 +0000 |
commit | 09e583fc25773a474b4a8485a42089437f262c68 (patch) | |
tree | 9b128747d5b346104df6bcdc12d880bd1df27a85 /org.eclipse.egit.ui.test | |
parent | 514e43a86565a769321804bce7fca9f14ca781c1 (diff) | |
download | egit-09e583fc25773a474b4a8485a42089437f262c68.tar.gz egit-09e583fc25773a474b4a8485a42089437f262c68.tar.xz egit-09e583fc25773a474b4a8485a42089437f262c68.zip |
Fix NPE in GitFlowRepository.isDevelop()
NPE is thrown in isDevelop() if the JGit repository is null.
That repository is only set in the constructor, and I found
two paths in non-test code, that could lead to this.
To make sure this fixes the issue, I added null guards for both.
Also mark the problematic parameters with null analysis annotations in
order to allow detection of similar problems at compile time
Change-Id: I607ee5c188cf1a949393eea0999bb409c0727f86
Signed-off-by: Max Hohenegger <eclipse@hohenegger.eu>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test')
0 files changed, 0 insertions, 0 deletions