Merge "Remove unneeded null checks"
This commit is contained in:
		@@ -280,7 +280,7 @@ public class PermissionEditor extends Composite implements Editor<Permission>,
 | 
			
		||||
      validRange = null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (value != null && Permission.OWNER.equals(value.getName())) {
 | 
			
		||||
    if (Permission.OWNER.equals(value.getName())) {
 | 
			
		||||
      exclusiveGroup.setEnabled(false);
 | 
			
		||||
    } else {
 | 
			
		||||
      exclusiveGroup.setEnabled(!readOnly);
 | 
			
		||||
 
 | 
			
		||||
@@ -120,7 +120,7 @@ public class ProjectAccessEditor extends Composite implements
 | 
			
		||||
      history.getStyle().setDisplay(Display.NONE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    addSection.setVisible(value != null && editing && (!value.getOwnerOf().isEmpty() || value.canUpload()));
 | 
			
		||||
    addSection.setVisible(editing && (!value.getOwnerOf().isEmpty() || value.canUpload()));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -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());
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (diffBaseId != null && patchesList != null) {
 | 
			
		||||
    if (diffBaseId != null) {
 | 
			
		||||
      patchesList.setSelectedIndex(diffBaseId.get());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -418,7 +418,7 @@ public class ChangeUtil {
 | 
			
		||||
      final GitReferenceUpdated gitRefUpdated, final ReviewDb db)
 | 
			
		||||
      throws NoSuchChangeException, OrmException, IOException {
 | 
			
		||||
    final PatchSet.Id patchSetId = patch.getId();
 | 
			
		||||
    if (patch == null || !patch.isDraft()) {
 | 
			
		||||
    if (!patch.isDraft()) {
 | 
			
		||||
      throw new NoSuchChangeException(patchSetId.getParentKey());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user