Skip to content

Commit

Permalink
Short-circuit rendering on no 1d-data; avoid m4 layer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Mar 13, 2023
1 parent 1aab9f1 commit 889e920
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions piker/ui/_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def render(

) = fmt_out

if not x_1d.size:
log.warning(f'{array_key} has no `.size`?')
return

# redraw conditions
if (
prepend_length > 0
Expand Down

0 comments on commit 889e920

Please sign in to comment.