Hello,
I'm faced with a nullpointer issue on one of my
JSP pages, I have some ideas of how to avoid this but I'd like some advice on some better ways.
I have the following on my page, this page displays only one of my "prospect" objects, depending on which one I clicked on the previous page :
This works fine for my "prospect" objects that have values in their "contacts" lists
I'm getting the null pointer if I access this JSP page for a "prospect" that doesn't have anything set for "contacts". This may well be the case if I were to create a new prospect, after just being created it would have no notion of contacts, unless I were to initialise a blank item in the list of contacts, but that seems rather a stupid way of patching this problem.
I've had a look at the display tag documentation, I can't see any way to display "no data found" on the table if the set of data is null
Any suggestions on how I could best tackle this?