summaryrefslogtreecommitdiff
path: root/BKUApplet/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'BKUApplet/src/main/java/at')
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
index d274e048..cf2fba35 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
@@ -378,7 +378,17 @@ private boolean checkPermissions() {
return true;
} catch (Exception e) {
if (log.isDebugEnabled())
- log.debug("Not enough permissions for " + e.getStackTrace()[1].getMethodName());
+ {
+ StackTraceElement[] st = e.getStackTrace();
+ String method = "unknown";
+ for (int i = 0; i < st.length; i++) {
+ if (st[i].getClassName().equals(this.getClass().getName())) {
+ method = st[i+1].getMethodName();
+ break;
+ }
+ }
+ log.debug("Not enough permissions for " + method, e);
+ }
}
return false;
}