aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-02-14 13:48:19 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-02-14 13:48:19 +0100
commitac7a4876f15a60d02b829a49c23c6c5ed20f7be8 (patch)
tree7402a01bff80124358332f93585b1f0704621946 /id/server/idserverlib/src/main
parent650cbb315304e47e0b920c3bc81579cc4efa5514 (diff)
downloadmoa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.tar.gz
moa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.tar.bz2
moa-id-spss-ac7a4876f15a60d02b829a49c23c6c5ed20f7be8.zip
bugfix: fix possible nullpointer exception
Diffstat (limited to 'id/server/idserverlib/src/main')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/advancedlogging/StatisticLogger.java7
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());
}