Project

General

Profile

« Previous | Next » 

Revision 8314

Added by Jing Tao about 11 years ago

Fixed a bug that the group information couldn't be retrived from the session.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
1081 1081
    		List<Group> groupList = session.getSubjectInfo().getGroupList();
1082 1082
    		if (groupList != null) {
1083 1083
    			groupnames = new String[groupList.size()];
1084
    			for (int i = 0; i > groupList.size(); i++ ) {
1084
    			for (int i = 0; i < groupList.size(); i++ ) {
1085 1085
    				groupnames[i] = groupList.get(i).getGroupName();
1086 1086
    			}
1087 1087
    		}
......
1132 1132
    		List<Group> groupList = session.getSubjectInfo().getGroupList();
1133 1133
    		if (groupList != null) {
1134 1134
    			groupnames = new String[groupList.size()];
1135
    			for (int i = 0; i > groupList.size(); i++ ) {
1135
    			for (int i = 0; i < groupList.size(); i++ ) {
1136 1136
    				groupnames[i] = groupList.get(i).getGroupName();
1137 1137
    			}
1138 1138
    		}
......
1394 1394
              List<Group> groupList = session.getSubjectInfo().getGroupList();
1395 1395
              if (groupList != null) {
1396 1396
                  groupnames = new String[groupList.size()];
1397
                  for (int i = 0; i > groupList.size(); i++) {
1397
                  for (int i = 0; i < groupList.size(); i++) {
1398 1398
                      groupnames[i] = groupList.get(i).getGroupName();
1399 1399
                  }
1400 1400
              }

Also available in: Unified diff