Remove unneeded null checks
These null checks are not needed since the variables were previously dereferenced and if they were null a NullPointerException would have occurred then. Change-Id: Ied6a3b32b2580a0d95f74053a1867130780e208b Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -339,13 +339,11 @@ public class ChangeScreen extends Screen
|
||||
patchesList.addItem(Util.C.baseDiffItem());
|
||||
}
|
||||
for (PatchSet pId : detail.getPatchSets()) {
|
||||
if (patchesList != null) {
|
||||
patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId
|
||||
.getId().toString());
|
||||
}
|
||||
patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId
|
||||
.getId().toString());
|
||||
}
|
||||
|
||||
if (diffBaseId != null && patchesList != null) {
|
||||
if (diffBaseId != null) {
|
||||
patchesList.setSelectedIndex(diffBaseId.get());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user