diff --git a/tao/code/tao_python_cmd.f90 b/tao/code/tao_python_cmd.f90 index b565590f50..3a2dbce632 100644 --- a/tao/code/tao_python_cmd.f90 +++ b/tao/code/tao_python_cmd.f90 @@ -4268,6 +4268,10 @@ subroutine tao_python_cmd (input_str) u => tao_pointer_to_universe(g%ix_universe, .true.) lat => u%model%lat + if (.not. allocated(g%floor_list)) then + call invalid ('Floor plan drawing not yet setup for this graph.') + endif + do i = 1, size(g%floor_list) ele => pointer_to_ele(lat, g%floor_list(i)%ele_loc) ashape = g%floor_list(i)%shape