Description of problem: root/modules/common/ant-bundle/src/main/java/org/rhq/bundle/ant/type/SystemServiceType.java The init method contains this: if (this.configFile != null && !this.configFile.exists() || this.configFile.isDirectory()) { throw new BuildException("The 'configFile' attribute must be set to the path of an existing regular file."); } Because of the lack of parenthesis, and the operator precendence rules of Java, this will not actually check that the config file is non-null. Ie, if configFile is null, then this.configFile.isDirectory will still be called, resulting in a NullPointerException. I believe this should be changed to: if (this.configFile != null && (!this.configFile.exists() || this.configFile.isDirectory())) { throw new BuildException("The 'configFile' attribute must be set to the path of an existing regular file."); }
thanks, it is fixed now http://git.fedorahosted.org/cgit/rhq/rhq.git/diff/?id=49a48ea47 time: Fri Dec 14 14:50:57 2012 +0100 commit: 49a48ea47dde77506b48bb1c699dd6aab0ab8a20 author: Jirka Kremser - jkremser message: [BZ 886287 - NullPointerException when another exception should have been thrown] quick fix, lazy evaluation of Java should ensure the prevention of throwing NPE
Bulk closing of issues in old RHQ releases that are in production for a while now. Please open a new issue when running into an issue.