Skip to content

Fix null exception when FeatureWeights is null#15

Open
YIN-Tairan wants to merge 1 commit intoJLPM22:mainfrom
YIN-Tairan:bug-fix
Open

Fix null exception when FeatureWeights is null#15
YIN-Tairan wants to merge 1 commit intoJLPM22:mainfrom
YIN-Tairan:bug-fix

Conversation

@YIN-Tairan
Copy link
Contributor

The original code at line 120 would always try to access FeatureWeights.Length even if the latter is null. The reparation is done by returning 0 when FeatureWeights is null, and will skip the loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant