Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    298
    Vote Rating
    2
    mariusz.pala is on a distinguished road

      0  

    Default [FNR] [2.1.1] NPE in Menu class in Desktop

    [FNR] [2.1.1] NPE in Menu class in Desktop


    I have a Web Desktop application with simple Menu (screen attached).
    There is tool item in the StartMenu with some submenu. If there is no submenu everything seems to work fine.

    Code:
            MenuItem tool = new MenuItem(Messages.INSTANCE.logout());
            tool.setIcon(AbstractImagePrototype.create(CaraIcons.INSTANCE.repositoryRemoveIcon()));
            tool.setHideOnClick(false);
            Menu logoutMenu = new Menu();
            tool.setSubMenu(logoutMenu);
            //some sub-items
            menu.addTool(tool);
    But in the case above when I click on "Logout" menu I got an exception:

    Code:
    java.lang.NullPointerException:
    null
        at com.extjs.gxt.ui.client.widget.menu.Menu.hide(Menu.java:270)
        at com.extjs.gxt.ui.client.widget.menu.Menu.onAutoHide(Menu.java:592)
        at com.extjs.gxt.ui.client.widget.menu.Menu$1.onAutoHide(Menu.java:173)

    since the StartMenu extends Menu class and in that case parentMenu is always null?

    Thanks in advance for a quick response.
    Mariusz
    Attached Images

  2. #2
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    298
    Vote Rating
    2
    mariusz.pala is on a distinguished road

      0  

    Default


    By the way,
    Code:
    tool.setHideOnClick(false);
    doesn't work in StartMenu, it works in any sub-menu though.

  3. #3
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    298
    Vote Rating
    2
    mariusz.pala is on a distinguished road

      0  

    Default


    Oh, and to reproduce it, in the Web Desktop demo app (DesktopApp.java) just add some sub items to any tool, e.g.

    Code:
        tool = new MenuItem("Logout");
        tool.setIcon(IconHelper.createStyle("logout"));
        Menu logoutMenu = new Menu();
        logoutMenu.add(new MenuItem("From here"));
        logoutMenu.add(new MenuItem("and from here"));
        tool.setSubMenu(logoutMenu);
        menu.addTool(tool);

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This problem is quite simple and will be fixed with 2.2. I will respond here once its on SVN

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2055

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi