fixed NullPointerException in deployment view (#871)
* fixed NullPointer exception in deployment view Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com> * fixed review findings Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
This commit is contained in:
committed by
Dominic Schabel
parent
5b4bbeef41
commit
61378b1f5c
@@ -407,11 +407,15 @@ public class DeploymentView extends AbstractNotificationView implements BrowserW
|
||||
protected Map<Class<?>, RefreshableContainer> getSupportedPushEvents() {
|
||||
final Map<Class<?>, RefreshableContainer> supportedEvents = Maps.newHashMapWithExpectedSize(10);
|
||||
|
||||
supportedEvents.put(TargetCreatedEventContainer.class, targetTableLayout.getTable());
|
||||
supportedEvents.put(TargetDeletedEventContainer.class, targetTableLayout.getTable());
|
||||
if (permChecker.hasTargetReadPermission()) {
|
||||
supportedEvents.put(TargetCreatedEventContainer.class, targetTableLayout.getTable());
|
||||
supportedEvents.put(TargetDeletedEventContainer.class, targetTableLayout.getTable());
|
||||
}
|
||||
|
||||
supportedEvents.put(DistributionSetCreatedEventContainer.class, distributionTableLayout.getTable());
|
||||
supportedEvents.put(DistributionSetDeletedEventContainer.class, distributionTableLayout.getTable());
|
||||
if (permChecker.hasReadRepositoryPermission()) {
|
||||
supportedEvents.put(DistributionSetCreatedEventContainer.class, distributionTableLayout.getTable());
|
||||
supportedEvents.put(DistributionSetDeletedEventContainer.class, distributionTableLayout.getTable());
|
||||
}
|
||||
|
||||
supportedEvents.put(TargetTagCreatedEventContainer.class, targetTagFilterLayout);
|
||||
supportedEvents.put(TargetTagDeletedEventContainer.class, targetTagFilterLayout);
|
||||
|
||||
Reference in New Issue
Block a user