Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2010-12-29 10:54:47 -0500
committerMilos Kleint2010-12-29 10:54:47 -0500
commit5a4e897f61d8a3e9879e210080858d9056f009f8 (patch)
tree8dd24b614936b45d4079b1e118b17d0a31470ccf
parent885ac3194f50b6e51dd504eea78a6c75126f3a97 (diff)
downloadm2e-core-5a4e897f61d8a3e9879e210080858d9056f009f8.tar.gz
m2e-core-5a4e897f61d8a3e9879e210080858d9056f009f8.tar.xz
m2e-core-5a4e897f61d8a3e9879e210080858d9056f009f8.zip
fix NPE
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/ui/dialogs/AddDependencyDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/ui/dialogs/AddDependencyDialog.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/ui/dialogs/AddDependencyDialog.java
index 9eaae6c0..8568cb52 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/ui/dialogs/AddDependencyDialog.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/ui/dialogs/AddDependencyDialog.java
@@ -501,7 +501,7 @@ public class AddDependencyDialog extends AbstractMavenDialog {
if(artifactFiles == null || artifactFiles.size() == 1) {
String type = "";
String classifier = "";
- if (artifactFiles.size() == 1) {
+ if (artifactFiles != null && artifactFiles.size() == 1) {
// use the selected artifact props if available..
IndexedArtifactFile file = artifactFiles.iterator().next();
classifier = file.classifier;

Back to the top