Skip to content

Commit

Permalink
fix: Add a check for null() #277
Browse files Browse the repository at this point in the history
fixes #277
  • Loading branch information
Stephan Wald committed Jan 13, 2025
1 parent 846d40c commit e8a8fa8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BBjGridExWidget.bbj
Original file line number Diff line number Diff line change
Expand Up @@ -2503,8 +2503,10 @@ class public BBjGridExWidget extends BBjWidget implements GxColumnsManagerInterf
rem * @param GxState state! : the state object
rem */
method public void setState(GxState state!)
scriptKey! = "$gw_wnd.gw_setState"
#getExecutor().execute(scriptKey!,"$gw_wnd.gw_setState('" + #getRootId() + "'," + state!.toString() +")")
if state! <> null() then
scriptKey! = "$gw_wnd.gw_setState"
#getExecutor().execute(scriptKey!,"$gw_wnd.gw_setState('" + #getRootId() + "'," + state!.toString() +")")
fi
methodend
rem /**
rem * Apply the grid's columns , sorbing and filtering state
Expand Down

0 comments on commit e8a8fa8

Please sign in to comment.