X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fmenu%2Fconsole%2FConsoleMenu.java;h=6eff64f6cb6377bcad13ec1cd28900899870af34;hb=9ad193b51551b58af5a9eef70810933f0f6033ee;hp=7064473b735399be33004353f1cd8bd3b79e5837;hpb=ea30fd0dc674dcd10c3aead1acd47000a99d7334;p=addressbook-lib.git diff --git a/Addressbook/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java b/Addressbook/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java index 7064473..6eff64f 100644 --- a/Addressbook/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java +++ b/Addressbook/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java @@ -16,6 +16,7 @@ */ package org.mxchange.addressbook.menu.console; +import java.text.MessageFormat; import org.mxchange.addressbook.client.Client; import org.mxchange.addressbook.menu.AddressbookMenu; import org.mxchange.addressbook.menu.BaseMenu; @@ -34,6 +35,16 @@ public class ConsoleMenu extends BaseMenu implements Menu { * @param client CLient to call back */ public ConsoleMenu (final String menuType, final Client client) { + // Trace message + this.getLogger().trace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N + + // Client must not be null + if (client == null) { + // Abort here + throw new NullPointerException("client is null"); + } + + // Init menu this.initMenu(menuType, client); // Add all items