Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14605

Visual Studio throws an NPE when one of the configuration is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 5.5
    • .NET, Windows

      When creating a visual studio task and one of the field configuration like the solution or options is not configured, Bamboo throws NPE. This should be handled gracefully with a warning

      2014-05-14 22:39:33,592 ERROR [http-bio-10555-exec-15] [ExceptionMappingInterceptor] null
      java.lang.NullPointerException
      	at com.atlassian.bamboo.plugin.dotnet.visualstudio.VisualStudioConfigurator.validate(VisualStudioConfigurator.java:58)
      	at com.atlassian.bamboo.ww2.actions.build.admin.config.task.TaskUIConfigBean.validateTaskConfiguration(TaskUIConfigBean.java:165)
      	at com.atlassian.bamboo.ww2.actions.build.admin.config.task.CreateTask.validate(CreateTask.java:89)
      	at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:251)
      	at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
      	at com.atlassian.bamboo.ww2.interceptors.BambooValidationInterceptor.validate(BambooValidationInterceptor.java:48)
      	at com.atlassian.bamboo.ww2.interceptors.BambooValidationInterceptor.access$000(BambooValidationInterceptor.java:12)
      	at com.atlassian.bamboo.ww2.interceptors.BambooValidationInterceptor$1.call(BambooValidationInterceptor.java:28)
      	at com.atlassian.bamboo.ww2.interceptors.BambooValidationInterceptor$1.call(BambooValidationInterceptor.java:24)
      	at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:51)
      	at com.atlassian.bamboo.ww2.interceptors.BambooValidationInterceptor.doIntercept(BambooValidationInterceptor.java:23)
      	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      	at com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      	at com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor.doIntercept(JSONValidationInterceptor.java:69)
      	at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      

        1. Capture.PNG
          Capture.PNG
          52 kB
        2. diff.log
          3 kB

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: