Merge "Fix exception when clicking on binary file without being signed in"
This commit is contained in:
		@@ -267,8 +267,9 @@ public class PatchTable extends Composite {
 | 
				
			|||||||
      final PatchScreen.Type screenType) {
 | 
					      final PatchScreen.Type screenType) {
 | 
				
			||||||
    if (Dispatcher.isChangeScreen2()) {
 | 
					    if (Dispatcher.isChangeScreen2()) {
 | 
				
			||||||
      return (patch.getPatchType().equals(PatchType.BINARY)
 | 
					      return (patch.getPatchType().equals(PatchType.BINARY)
 | 
				
			||||||
          || Gerrit.getUserAccount().getGeneralPreferences().getDiffView()
 | 
					          || (Gerrit.isSignedIn()
 | 
				
			||||||
          .equals(DiffView.UNIFIED_DIFF));
 | 
					              && Gerrit.getUserAccount().getGeneralPreferences().getDiffView()
 | 
				
			||||||
 | 
					                 .equals(DiffView.UNIFIED_DIFF)));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return screenType == PatchScreen.Type.UNIFIED;
 | 
					    return screenType == PatchScreen.Type.UNIFIED;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user