From e621be5ab31eac1db15fcec24ab55202d793d51f Mon Sep 17 00:00:00 2001
From: Mark Donszelmann <Mark.Donszelmann@gmail.com>
Date: Fri, 30 Oct 2009 10:09:04 +0100
Subject: NPE fix for NAR-98

---
 src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java b/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java
index 988300d..e3c8161 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java
@@ -63,7 +63,7 @@ public class NarSystemGenerate
             }
         }
         
-        if ( !jniFound )
+        if ( !jniFound || packageName == null)
             return;
 
         File narSystemTarget = new File(getMavenProject().getBasedir(), narSystemDirectory);
-- 
cgit v1.2.3