group management administrative code give an error when a user has no group.
Login as admin, select users -> manage groups.
unselect all groups, click submit.
Caused by: java.lang.NullPointerException
at net.jforum.view.admin.UserAction.groupsSave(UserAction.java:277)
because selectedGroups=null
// Associate the user to the selected groups
String[] selectedGroups = this.request.getParameterValues("groups");
HERE ------> int[] newGroups = new int[selectedGroups.length];
for (int i = 0; i < selectedGroups.length; i++) {
newGroups[i] = Integer.parseInt(selectedGroups[i]);
}
[originally posted on jforum.net by Anonymous]