Skip to content

bugfix: unstored objects don't have a dbID, so this raises a warning

Marek Szuba requested to merge bugfix/undef_analysis_id into master

Created by: muffato

Use case

I found several warnings about performing an addition on unitialized values when running the test suite locally.

Description

The warnings come from apply_tweaks. The method assumes that all analyses have a dbID, which is forced into a numeric with + 0. However, init_pipeline.pl applies the tweaks before storing the objects, so dbID is still undefined at this stage.

Possible Drawbacks

None

Testing

Have you added/modified unit tests to test the changes?

No

Have you run the entire test suite and no regression was detected?

Yes: OK

Merge request reports