Description
The activity stream plugin should protect itself from NPE by checking if the URL factory has been created before using it.
2009-10-22 16:06:43,892 [http://asiri.localhost:8080/xwiki/bin/view/Main/?xpage=xpart&vm=commentsinline.vm] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.DocumentUpdateEvent@ee5169] to listener [com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl@ef57f8] java.lang.NullPointerException at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1134) at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1148) at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1153) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.setEventDocumentRelatedInformation(ActivityStreamImpl.java:116) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.prepareEvent(ActivityStreamImpl.java:154) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addActivityEvent(ActivityStreamImpl.java:281) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:384) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:362) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.onEvent(ActivityStreamImpl.java:888) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:262) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:236) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1339) at com.xpn.xwiki.plugin.watchlist.WatchListStore.initWatchListClass(WatchListStore.java:257) at com.xpn.xwiki.plugin.watchlist.WatchListStore.virtualInit(WatchListStore.java:323) at com.xpn.xwiki.plugin.watchlist.WatchListPlugin.virtualInit(WatchListPlugin.java:134) at com.xpn.xwiki.plugin.XWikiPluginManager.virtualInit(XWikiPluginManager.java:170) at com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:871) at com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:848) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:482)