Fixed null argument
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@176774 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
66312747fb
commit
30c8efe0b2
|
@ -144,7 +144,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ArrayList<ItemBean> mentionedUsers = null;
|
ArrayList<ItemBean> mentionedUsers = new ArrayList<>();
|
||||||
if (mentionedItems != null && ! mentionedItems.isEmpty()) {
|
if (mentionedItems != null && ! mentionedItems.isEmpty()) {
|
||||||
mentionedUsers = getMentionsBean(mentionedItems);
|
mentionedUsers = getMentionsBean(mentionedItems);
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ArrayList<ItemBean> mentionedUsers = null;
|
ArrayList<ItemBean> mentionedUsers = new ArrayList<>();;
|
||||||
if (mentionedItems != null && ! mentionedItems.isEmpty()) {
|
if (mentionedItems != null && ! mentionedItems.isEmpty()) {
|
||||||
mentionedUsers = getMentionsBean(mentionedItems);
|
mentionedUsers = getMentionsBean(mentionedItems);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue