java.lang.RuntimeException: 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.

  • h3. Summary Top navigation bar in JIRA is disappeared when upgraded from JIRA Following stack trace can be seen from the log: {code:java} 2016-03-02 09:32:08,412 http-bio-8641-exec-10 DEBUG admin 572x2667x1 1eld3da 172.20.44.74 /secure/admin/ViewLogging.jspa [com.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'java.lang.RuntimeException - java.lang.NullPointerException'. java.lang.RuntimeException: java.lang.NullPointerException at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$8.visit(HeaderFooterRendering.java:357) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$8.visit(HeaderFooterRendering.java:342) at com.atlassian.ozymandias.SafePluginPointAccess.invokeModule(SafePluginPointAccess.java:452) at com.atlassian.ozymandias.SafePluginPointAccess.descriptors(SafePluginPointAccess.java:150) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering.includeTopNavigation(HeaderFooterRendering.java:341) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$1.run(HeaderFooterRendering.java:117) at com.atlassian.ozymandias.SafePluginPointAccess.runnable(SafePluginPointAccess.java:201) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering.includeTopNavigation(HeaderFooterRendering.java:112) Caused by: java.lang.NullPointerException at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider.isUsingExternalAvatar(JiraUserAvatarProvider.java:208) at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider$JiraUserPluginAvatar.<init>(JiraUserAvatarProvider.java:442) at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider.getAvatar(JiraUserAvatarProvider.java:176) at com.atlassian.jira.avatar.pluggable.AvatarProviderAdapter.getAvatar(AvatarProviderAdapter.java:69) at com.atlassian.jira.avatar.AvatarServiceImpl.getAvatarURLImpl(AvatarServiceImpl.java:204) at com.atlassian.jira.avatar.AvatarServiceImpl.getAvatarURL(AvatarServiceImpl.java:217) {code} This problem happens because there's NULL error when retrieving the default avatar ID. h3. Environment So far it's only replicable with JIRA 6.4 h3. Expected Results After upgrade the top bar is displayed correctly. h3. Actual Results Top bar is hidden. h3.Workaround (i) [Backup|https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html] your JIRA. 1. Stop your JIRA. 2. Run the following query to retrieve id of default avatar: {code:java} select id from propertyentry where property_key like '%avatar.user.default%'; {code} 3. Update the propertrystring entry using the following query: {code:java} insert into propertystring values (result-of-query-above, 10122); {code} 4. Restart your JIRA.
    via by Vicknesh Shanmugam [Atlassian],
    • java.lang.RuntimeException: java.lang.NullPointerException at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$8.visit(HeaderFooterRendering.java:357) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$8.visit(HeaderFooterRendering.java:342) at com.atlassian.ozymandias.SafePluginPointAccess.invokeModule(SafePluginPointAccess.java:452) at com.atlassian.ozymandias.SafePluginPointAccess.descriptors(SafePluginPointAccess.java:150) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering.includeTopNavigation(HeaderFooterRendering.java:341) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering$1.run(HeaderFooterRendering.java:117) at com.atlassian.ozymandias.SafePluginPointAccess.runnable(SafePluginPointAccess.java:201) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering.includeTopNavigation(HeaderFooterRendering.java:112) Caused by: java.lang.NullPointerException at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider.isUsingExternalAvatar(JiraUserAvatarProvider.java:208) at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider$JiraUserPluginAvatar.<init>(JiraUserAvatarProvider.java:442) at com.atlassian.jira.avatar.plugin.JiraUserAvatarProvider.getAvatar(JiraUserAvatarProvider.java:176) at com.atlassian.jira.avatar.pluggable.AvatarProviderAdapter.getAvatar(AvatarProviderAdapter.java:69) at com.atlassian.jira.avatar.AvatarServiceImpl.getAvatarURLImpl(AvatarServiceImpl.java:204) at com.atlassian.jira.avatar.AvatarServiceImpl.getAvatarURL(AvatarServiceImpl.java:217)
    No Bugmate found.