You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by bu...@apache.org on 2003/05/28 20:08:46 UTC
DO NOT REPLY [Bug 20311] New: -
NullPointerException in org.apache.jetspeed.om.registry.base.BasePortletInfoEntry when creating a new portlet
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20311
NullPointerException in org.apache.jetspeed.om.registry.base.BasePortletInfoEntry when creating a new portlet
Summary: NullPointerException in
org.apache.jetspeed.om.registry.base.BasePortletInfoEntr
y when creating a new portlet
Product: Jetspeed
Version: 1.4b4-dev / CVS
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: Registry
AssignedTo: jetspeed-dev@jakarta.apache.org
ReportedBy: jason@omnicoders.com
The mediasIdx is initially set to null and isn't guaranteed to be
initialized. The only methods that initialize this variable are listMediaTypes
() and hasMediaType().
Therefore, if you try to create a NEW portlet and call addMediaType(String),
you get a NPE.
WORKAROUND: Even though its a new portlet, calling a check to hasMediaType()
properly initializes the mediasIdx Map and you can then successfully add the
new portlet. The only way to know this workaround is to dig through the
source code!
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org