Skip to content

Crash (null pointer) when calling functions without a valid solution #56

@PMeira

Description

@PMeira

Many functions require a valid/initialized state or otherwise will crash. For example, any function that calls cktelement.GetCurrents should crash.

This happens both in official COM and C-API, so it's not urgent.

We need to select the proper places to check this. Checking ActiveCircuit.IsSolved might be enough for the general circuit, checking if cktelement.NodeRef is not null seems enough for individual circuit elements.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions