From bbdff21af90333d45eef577bc4b0388962f14b62 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 23 Oct 2015 18:34:03 +0200 Subject: [PATCH] added check for addressbookController.addressbook to prevent ugly NPE --- src/java/org/mxchange/localization/bundle_de_DE.properties | 1 + src/java/org/mxchange/localization/bundle_en_US.properties | 1 + web/login/login_start_sharing_addressbook.xhtml | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 82562c28..929c67e5 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -266,3 +266,4 @@ LOGIN_NO_USER_NAME_MESSAGE=Sie haben keinen Benutzernamen eingegeben. USER_NOT_LOGGED_IN=Sie sind nicht angemeldet. LOGIN_OWN_PROFILE_INVISIBLE=Ihr Profil ist auf "durchsichtig" gestellt. ERROR_USER_INSTANCE_NOT_SET=Fehler: Benutzer-Instanz nicht gesetzt. +LOGIN_ADDRESSBOOK_NOT_SET=Adressbuch-Instanz nicht gesetzt. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 8d1678c3..9e7e0cb1 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -261,3 +261,4 @@ LOGIN_NO_USER_NAME_MESSAGE=You have entered no user name. USER_NOT_LOGGED_IN=You are not signed in. LOGIN_OWN_PROFILE_INVISIBLE=Your profile is set to "invisible". ERROR_USER_INSTANCE_NOT_SET=Error: User instance not set. +LOGIN_ADDRESSBOOK_NOT_SET=Address book instance not set. diff --git a/web/login/login_start_sharing_addressbook.xhtml b/web/login/login_start_sharing_addressbook.xhtml index 7135ba12..d405ac8d 100644 --- a/web/login/login_start_sharing_addressbook.xhtml +++ b/web/login/login_start_sharing_addressbook.xhtml @@ -23,7 +23,7 @@
- + #{msg.USER_ID} @@ -43,7 +43,9 @@ - + + +