Author: elvisisking
Date: 2009-09-09 17:25:07 -0400 (Wed, 09 Sep 2009)
New Revision: 1196
Modified:
branches/eclipse/org.jboss.dna.publish.ui.swt/src/org/jboss/dna/web/jcr/rest/client/swt/dialogs/DeleteServerDialog.java
Log:
Added null check on constructor arg.
Modified:
branches/eclipse/org.jboss.dna.publish.ui.swt/src/org/jboss/dna/web/jcr/rest/client/swt/dialogs/DeleteServerDialog.java
===================================================================
---
branches/eclipse/org.jboss.dna.publish.ui.swt/src/org/jboss/dna/web/jcr/rest/client/swt/dialogs/DeleteServerDialog.java 2009-09-09
19:30:42 UTC (rev 1195)
+++
branches/eclipse/org.jboss.dna.publish.ui.swt/src/org/jboss/dna/web/jcr/rest/client/swt/dialogs/DeleteServerDialog.java 2009-09-09
21:25:07 UTC (rev 1196)
@@ -34,6 +34,7 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Shell;
+import org.jboss.dna.common.util.CheckArg;
import org.jboss.dna.web.jcr.rest.client.domain.IDnaObject;
import org.jboss.dna.web.jcr.rest.client.domain.Server;
import org.jboss.dna.web.jcr.rest.client.swt.Activator;
@@ -71,6 +72,8 @@
Collection<Server> serversBeingDeleted ) {
super(parentShell, RestClientI18n.deleteServerDialogTitle.text(),
Activator.getDefault().getImage(DNA_IMAGE_16x), null,
MessageDialog.QUESTION, new String[] {IDialogConstants.OK_LABEL,
IDialogConstants.CANCEL_LABEL}, 0);
+
+ CheckArg.isNotNull(serversBeingDeleted, "serversBeingDeleted");
//$NON-NLS-1$
this.serversBeingDeleted = serversBeingDeleted;
// make sure dialog is resizable
Show replies by date