Community
Participate
Working Groups
Build Identifier: Build id: 20100617-1415 (Helios) Using headless Buckminster using the lastRevision buckminster Ant task in an ant actor, using a 'repositoryLocation' to access a non-local repository, results in a NullPointerException. Reproducible: Always Steps to Reproduce: 1. trying to do this (part of test.xml): [code] <buckminster.lastRevision property="lastRev" readerType="svn" repositoryLocation="http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/"/> [/code] from an Ant actor using Headless Buckminster (latest Helios stable) 2. I get: [code] ERROR: org.eclipse.core.runtime.CoreException: test.xml:7: java.lang.NullPointerException org.eclipse.core.runtime.CoreException: test.xml:7: java.lang.NullPointerException at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167) at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322) at (...) Caused by: java.lang.NullPointerException at org.eclipse.buckminster.subversion.GenericSession.listFolder(GenericSession.java:558) at org.eclipse.buckminster.subversive.internal.SubversiveSession.getDirEntry(SubversiveSession.java:279) at org.eclipse.buckminster.subversive.internal.SubversiveSession.getLastChangeNumber(SubversiveSession.java:290) ... 48 more [/code] 3. I think it goes wrong at listFolder at line 558 (Class org.eclipse.buckminster.subversion.GenericSession). Looking at the source, it seems to do this: [code] } finally { monitor.done(); } [/code] 4. So I guess 'monitor' is null here, hence the NullPointerException. Is this a bug? Maybe headless calls don't have a monitor? 5. Note that if I instead use workingCopy (instead of repositoryLocation) it does work...
*** This bug has been marked as a duplicate of bug 317516 ***