Skip to content

Setting symbol code causing exception when used with the default MilStdSymbol constructor #444

@michaeltk3

Description

@michaeltk3

Expected Behavior

I can create a MilStdSymbol and then set its symbol code...
MilStdSymbol newFeature = new MilStdSymbol();
newFeature.setSymbolCode(...);

Actual Behavior

setSymbolCode() call is throwing IllegalStateException:
01-03 10:32:08.682 1575 1575 E AndroidRuntime: java.lang.IllegalStateException: Invalid operation. Symbol code is not set 01-03 10:32:08.682 1575 1575 E AndroidRuntime: at mil.emp3.api.MilStdSymbol.validate(MilStdSymbol.java:1038) 01-03 10:32:08.682 1575 1575 E AndroidRuntime: at mil.emp3.api.MilStdSymbol.isSinglePoint(MilStdSymbol.java:858) 01-03 10:32:08.682 1575 1575 E AndroidRuntime: at mil.emp3.api.MilStdSymbol.setSymbolCode(MilStdSymbol.java:660)

Steps to Reproduce the Problem

  1. See expected behavior

Specifications

  • Version: EMP 3.1.6
  • Platform: Android
  • Subsystem:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions