diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-02-14 13:48:19 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-02-14 13:48:19 +0100 |
commit | ac7a4876f15a60d02b829a49c23c6c5ed20f7be8 (patch) | |
tree | 7402a01bff80124358332f93585b1f0704621946 | |
parent | 650cbb315304e47e0b920c3bc81579cc4efa5514 (diff) | |
download | moa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.tar.gz moa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.tar.bz2 moa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.zip |
bugfix: fix possible nullpointer exception
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java | 7 |
1 files changed, 5 insertions, 2 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 17a5d2be9..d4b5d1c05 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 @@ -247,8 +247,11 @@ public class StatisticLogger { AuthenticationSession moasession = AuthenticationSessionStoreage.getSessionWithPendingRequestID(errorRequest.getRequestID()); if (moasession != null) { - dblog.setBkuurl(moasession.getBkuURL()); - dblog.setBkutype(findBKUType(moasession.getBkuURL(), dbOA)); + if (MiscUtil.isNotEmpty(moasession.getBkuURL())) { + dblog.setBkuurl(moasession.getBkuURL()); + dblog.setBkutype(findBKUType(moasession.getBkuURL(), dbOA)); + } + dblog.setMandatelogin(moasession.getUseMandate()); } |