aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-10-24 13:43:19 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-10-24 13:43:19 +0200
commit422bce78a84746c95298facd6c00ade2d48683ad (patch)
treec97f89c055caae7fc6df16185373c67811997115 /id/server/idserverlib
parentcf30fab96d66c6beb46f1c69bf8a9d4bed2fb715 (diff)
downloadmoa-id-spss-422bce78a84746c95298facd6c00ade2d48683ad.tar.gz
moa-id-spss-422bce78a84746c95298facd6c00ade2d48683ad.tar.bz2
moa-id-spss-422bce78a84746c95298facd6c00ade2d48683ad.zip
fix possible NullpointerException
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java
index f20339506..b68db92a4 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java
@@ -110,8 +110,7 @@ public class StatisticLogger {
Logger.warn("Advanced logging failed: OA can not be found in database.");
return;
}
-
-
+
StatisticLog dblog = new StatisticLog();
//set actual date and time
@@ -125,12 +124,8 @@ public class StatisticLogger {
dblog.setOafriendlyName(dbOA.getFriendlyName());
boolean isbusinessservice = isBusinessService(dbOA);
- dblog.setBusinessservice(isbusinessservice);
-
- if (isbusinessservice)
- dblog.setOatarget(dbOA.getAuthComponentOA().getIdentificationNumber().getValue());
- else
- dblog.setOatarget(dbOA.getTarget());
+ dblog.setBusinessservice(isbusinessservice);
+ dblog.setOatarget(authData.getBPKType());
dblog.setInterfederatedSSOSession(authData.isInterfederatedSSOSession());