Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
None
Description
When I write a composite component like the following:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition ...>
<div>
<h2>Spaces</h2>
<ul>
<ui:repeat value="#
" var="space">
<li>
<parleys:spaceLink space="#
" renderThumbnail="true" renderLabel="true"/>
</li>
</ui:repeat>
</ul>
</div>
</ui:composition>
I get a NPE on line 1101 in ApplicationImpl, because there is no component metadata. Of course I made a mistake here, but a NPE isn't very helpful.
There is a "SEVERE: Cannot found composite bean descriptor UIComponent.BEANINFO_KEY" in the logs, but it's swallowed by a huge stack trace.
I suggest to throw a descriptive exception instead of logging the message.