I was just looking at a slightly related case where we use our own custom tab 
definition with extra functionality (role check, enable/disable, etc.), which 
can result in a tab definition without any fields (getFields() returned an 
empty list, because this particular user doesn't have permission for the tab 
for instance). This also ends with same NPE, when in 4.5 that particular tab 
would just not get rendered. I worked around this by returning a single static 
message field in case a tab would otherwise end up not containing any fields. I 
would argue that a form definition that yields an empty list of fields should 
not cause a NPE, but that is something for a bug report.

But then this all doesn't really explain why you end up in this place...

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=f8b123f2-db30-4bc8-acc4-66015a882848


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to