BSP-237 - Bamboo will fail to export if there are no plans configured

Product: Bamboo

Environment

Operating System  
Affect Version/s 1.2.1
JVM  
Database MySQL 5.x
Application Server JBoss 4.x

Error Message

Caused by: java.lang.NullPointerException
	at com.atlassian.bamboo.migration.XmlMigrator.exportXml(XmlMigrator.java:286)
	at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:623)
	at com.atlassian.bamboo.migration.XmlMigrator$$EnhancerByCGLIB$$33afbb46.exportXml(<generated>)
	at com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooExport(ImportExportManagerImpl.java:72)
	... 124 more

Symptom

Export will fail, and "Export has failed. Errors encountered while exporting." error message will be displayed in the browser.

Diagnostics/Test

Root Cause

Solution

Raised http://jira.atlassian.com/browse/BAM-1638, fixed in Bamboo 1.2.3

Labels