From 4c351266ad80ec8dca4b9c2fb37cc646db3f557c Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sat, 6 Apr 2002 04:26:54 +0000 Subject: [PATCH] Avoid null pointer by checking to make sure extension is non-null before adding it to manifest git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272252 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/antlib/extensions/JarLibManifestTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java b/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java index da9311369..728e24ae1 100644 --- a/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java +++ b/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java @@ -184,7 +184,10 @@ public final class JarLibManifestTask appendExtraAttributes( attributes ); - Extension.addExtension( m_extension, attributes ); + if( null != m_extension ) + { + Extension.addExtension( m_extension, attributes ); + } //Add all the dependency data to manifest for dependencies final ArrayList depends = toExtensions( m_dependencies );