Return-Path: X-Original-To: apmail-myfaces-commits-archive@www.apache.org Delivered-To: apmail-myfaces-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A57832654 for ; Thu, 5 May 2011 23:20:27 +0000 (UTC) Received: (qmail 8967 invoked by uid 500); 5 May 2011 23:20:27 -0000 Delivered-To: apmail-myfaces-commits-archive@myfaces.apache.org Received: (qmail 8893 invoked by uid 500); 5 May 2011 23:20:27 -0000 Mailing-List: contact commits-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list commits@myfaces.apache.org Received: (qmail 8886 invoked by uid 99); 5 May 2011 23:20:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 23:20:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 23:20:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8682023888E4; Thu, 5 May 2011 23:20:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1099996 - /myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java Date: Thu, 05 May 2011 23:20:06 -0000 To: commits@myfaces.apache.org From: mcooper@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110505232006.8682023888E4@eris.apache.org> Author: mcooper Date: Thu May 5 23:20:06 2011 New Revision: 1099996 URL: http://svn.apache.org/viewvc?rev=1099996&view=rev Log: Revert null pointer check that was removed in revision 749515 (prior to branching); causes a NullPointerException. Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java?rev=1099996&r1=1099995&r2=1099996&view=diff ============================================================================== --- myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java (original) +++ myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java Thu May 5 23:20:06 2011 @@ -420,9 +420,12 @@ public class JDeveloperMojo List compileSourceRoots = executionProject.getTestCompileSourceRoots(); - for (int i = 0; i < testSourceRoots.length; i++) + if (testResourceRoots != null) { - compileSourceRoots.add(testSourceRoots[i].getAbsolutePath()); + for (int i = 0; i < testSourceRoots.length; i++) + { + compileSourceRoots.add(testSourceRoots[i].getAbsolutePath()); + } } List compileResourceRoots = executionProject.getTestResources();