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.


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

Possible Drawbacks



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


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

Yes: OK

Merge request reports