Skip to content

SimulationMessaging uses antipattern-version of Singleton #30

@CodeByDrescher

Description

@CodeByDrescher

SimulationMessaging implements both a create method, and a getInstVar method, where getInstVar is quietly vulnerable to a nullptr SEGFAULT if create isn't called.

Per proper Singleton design, create should be removed, and it's logic transfered to getInstVar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Queued

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions