cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

clicking on Parts in inspector when nil causes crash #939

Closed rcoreilly closed 3 months ago

rcoreilly commented 3 months ago

Describe the bug

see title

How to reproduce

  1. Run demo
  2. Open inspector
  3. Select the Home tab button
  4. Open the parts
  5. Click on the Home part
  6. Click on Parts.

classic:

2024/03/18 19:10:08 panic: reflect: call of reflect.Value.IsZero on zero Value

Example code

No response

Relevant output

No response

Platform

macOS