Skip to content

Commit

Permalink
fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Apr 30, 2018
1 parent 6049dc2 commit be62062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BBjGridExWidget.bbj
Expand Up @@ -500,7 +500,7 @@ class public BBjGridExWidget extends BBjWidget
method public void setData( ResultSet rs!)
#RS! = rs!

if #AttributesRecord! <> NULL() then
if #AttributesRecord! <> NULL() AND rs!.size() >0 then
rem TODO: use the new method of components as soon as implemented
rem https://github.com/BasisHub/components/issues/87
r1! = rs!.getItem(0)
Expand All @@ -512,7 +512,7 @@ class public BBjGridExWidget extends BBjWidget
wend
fi

if #ColumnDefinition! <> NULL() then
if #ColumnDefinition! <> NULL() AND rs!.size() >0 then
r1! = rs!.getItem(0)
ar! = #ColumnDefinition!
it! = r1!.getFieldNames().iterator()
Expand Down

0 comments on commit be62062

Please sign in to comment.