Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Null point exception in ListGridField.getHidden()

    I am using SmartGwt Power 4.1p 2015-09-30 , Chrome 46.0.2490.80 OSX ElCapitan.
    GetHidden method doesn't work at all.

    ListGridField field = listGrid.getField("ReportsTo");
    ​boolean isHidden = field.getHidden();

    -----
    edited: fortunately fieldIsVisible still works:
    boolean isVisible = listGrid.fieldIsVisible("ReportsTo");
    Last edited by Sanmargar; 2 Nov 2015, 03:33.

    #2
    Hi Sanmargar,

    please see this post.
    I also think that all these Boolean-getters should either return primitive boolean=false or make sure that a Boolean is not null.

    Best regards
    Blama

    Comment


      #3
      I see. My mistake is it returns Boolean not boolean. Nevertheless it would be nice if it returns false.

      Comment

      Working...
      X