java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Deleting custom image for project avatar will cause NPE for Edit Project. {noformat} java.lang.NullPointerException at com.atlassian.jira.web.action.project.EditProject.doDefault(EditProject.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) {noformat} *Steps to reproduce*: # Create a project # Click on *Edit* for the project from projects list in administration - https://<domain>/secure/project/ViewProjects.jspa # Click *select image* - upload a custom image for avatar and update/save # Edit the project again by clicking *Edit* in project list and *select image* # Delete the custom image by hovering the cursor on it and click *X* at the top right of the image. Close the *select image* dialogue # Click *Update* # The project avatar now is changed to Atlassian's Charlie instead of default rocket or broken image in project's administration page. Editing the project will throw NPE error *Expected behavior* The project's avatar should be set to default one(rocket icon). *Workaround* The project's avatar ID need to be updated from database and restart JIRA. For Atlassian OnDemand users, please create a support ticket at https://support.atlassian.com under *OnDemand Support* project to get this fixed.
    via by Muhammad Fahd [Atlassian],
  • Deleting custom image for project avatar will cause NPE for Edit Project. {noformat} java.lang.NullPointerException at com.atlassian.jira.web.action.project.EditProject.doDefault(EditProject.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) {noformat} *Steps to reproduce*: # Create a project # Click on *Edit* for the project from projects list in administration - https://<domain>/secure/project/ViewProjects.jspa # Click *select image* - upload a custom image for avatar and update/save # Edit the project again by clicking *Edit* in project list and *select image* # Delete the custom image by hovering the cursor on it and click *X* at the top right of the image. Close the *select image* dialogue # Click *Update* # The project avatar now is changed to Atlassian's Charlie instead of default rocket or broken image in project's administration page. Editing the project will throw NPE error *Expected behavior* The project's avatar should be set to default one(rocket icon). *Workaround* The project's avatar ID need to be updated from database and restart JIRA. For Atlassian OnDemand users, please create a support ticket at https://support.atlassian.com under *OnDemand Support* project to get this fixed.
    via by Muhammad Fahd [Atlassian],
    • java.lang.NullPointerException at com.atlassian.jira.web.action.project.EditProject.doDefault(EditProject.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
    No Bugmate found.