Skip to content

NULL checks catches Stochastic Weight of Age when using another "Weight of Age" as data. #4

@efletcherPIFSC

Description

@efletcherPIFSC

Issue

@JonBrodziak reported:

There is a problem with the AGEPRO Gui.
I tested each of the three projection examples in the release.

Of these, example 1 ran correctly while example 2 and example 3
produced run-time errors. The error messages were
"An error occurred when launching the AGEPRO Model.
System.NullReferenceExceptions: Stochastic Age of
[SSB_WEIGHT] is NULL ...".

Details

By design, the Weights of age and CV data tables are nullified (in GUI form and data) if that Stochastic Weight of Age "uses" another Weight of Age.

Based on initial tests on the RC1 codebase, the error @JonBrodziak reported is caused by running NULL error checks (implemented on nmfs-ost/AGEPRO-CoreLib@b12d763) before checking if the Stochastic Weight of Age is "using" another "Weight of Age" as data.

This also affects from file options (both Stochastic and Stochastic Weights of Age).

Solution

  • Integrate the NULL checks to specific to User Specified Weights at Age to negate side effects.

Metadata

Metadata

Labels

CoreLibRelated to AGEPRO-CoreLib ModulebugSomething isn't workinginvalidThis doesn't seem right

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions