Revision 3741
Added by ben leinfelder almost 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientViewHelper.java | ||
---|---|---|
118 | 118 |
MultipartParser multipartParser; |
119 | 119 |
HashMap responseMap; |
120 | 120 |
|
121 |
if (clientViewBean == null) |
|
121 |
if (clientViewBean == null) {
|
|
122 | 122 |
clientViewBean = (ClientView) clientSession.getAttribute(ClientView.CLIENT_VIEW_BEAN); |
123 |
|
|
124 |
if (clientViewBean == null) { |
|
125 |
//make a new one and shove it in the session |
|
126 |
clientViewBean = new ClientView(); |
|
127 |
clientSession.setAttribute(ClientView.CLIENT_VIEW_BEAN, clientViewBean); |
|
128 |
} |
|
129 |
} |
|
123 | 130 |
|
124 | 131 |
if (clientViewBean != null) { |
125 | 132 |
action = clientViewBean.getAction(); |
Also available in: Unified diff
if there is no clientViewBean in the session, insert a new one - saves us from nullPointerException when using this in skins that may not be aware of the bean uses.