Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.4.1
Description
When viewing a page on mobile (more exactly, when accessing the following REST endpoint: /rest/mobile/1.0/content/<id>) a NullPointerException will be shown in the logs.
Everything will still work, but that NPE will be polluting the logs
2013-12-19 10:31:32,269 ERROR [http-8080-5] [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event 'com.atlassian.confluence.event.events.content.blogpost.BlogPostViewEvent[source=com.atlassian.confluence.plugins.mobile.rest.ContentResource@1c8b1dca]' from the invoker 'LegacyListenerInvoker{eventListener=com.atlassian.confluence.event.listeners.ReferralListener@2f17bb5e}'. -- url: /confluence/rest/mobile/1.0/content/1572905 | userName: admin java.lang.NullPointerException at com.atlassian.confluence.event.listeners.ReferralListener.handleEvent(ReferralListener.java:55) at com.atlassian.event.legacy.LegacyListenerHandler$LegacyListenerInvoker.invoke(LegacyListenerHandler.java:55) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at sun.reflect.GeneratedMethodAccessor536.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy251.publish(Unknown Source) at sun.reflect.GeneratedMethodAccessor536.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) ...