Skip to content

Location detail page crashes with AttributeError when custom objects have null object references #99

@anherrera

Description

@anherrera

Plugin Version

0.1.0

NetBox Version

4.2.9

Python Version

3.11

Steps to Reproduce

  1. Create a custom object type with an optional location field
  2. Create an instance with location=null
  3. Try to view any location detail page
  4. Page crashes with AttributeError

Expected Behavior

Location pages should handle null references gracefully

Observed Behavior

When custom objects have optional object fields with null values,
attempting to view any location detail page results in:

AttributeError: 'NoneType' object has no attribute 'id'

This completely breaks access to location pages in the NetBox UI.

Metadata

Metadata

Assignees

Labels

app: custom objectsseverity: highCompletely breaks certain functions, or substantially degrades performance application-widetype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions