dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19655
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8671: Null check
------------------------------------------------------------
revno: 8671
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-10-23 16:24:38 +0200
message:
Null check
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetAccessSettingsAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetAccessSettingsAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetAccessSettingsAction.java 2012-10-22 18:48:19 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetAccessSettingsAction.java 2012-10-23 14:24:38 +0000
@@ -83,7 +83,12 @@
public String execute()
{
- UserAuthorityGroup group = userService.getUserAuthorityGroup( selfRegistrationRole );
+ UserAuthorityGroup group = null;
+
+ if ( selfRegistrationRole != null )
+ {
+ group = userService.getUserAuthorityGroup( selfRegistrationRole );
+ }
Configuration config = configurationService.getConfiguration();
config.setSelfRegistrationRole( group );