Skip to content

#632 removeAllCounters() - Null query check - #634

Merged
dbwiddis merged 1 commit into
oshi:masterfrom
Kald0:#633
Sep 28, 2018
Merged

dbwiddis merged 1 commit into
oshi:masterfrom
Kald0:#633

Conversation

@Kald0

@Kald0 Kald0 commented Sep 28, 2018

Copy link
Copy Markdown
Contributor

Make sure that the PdhQuery is not null before closing it in the removeAllCounters() method.
This behavior can happen when the PdhCounter retrieval fails on the first counter: the PdhQuery was never opened/added to the queryMap in the first place.

@Kald0

Kald0 commented Sep 28, 2018

Copy link
Copy Markdown
Contributor Author

This solves the #632 issue.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #634 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #634   +/-   ##
=========================================
  Coverage     83.75%   83.75%           
  Complexity      197      197           
=========================================
  Files            28       28           
  Lines          1428     1428           
  Branches        208      208           
=========================================
  Hits           1196     1196           
  Misses          111      111           
  Partials        121      121

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9a5daa...5f4a1cf. Read the comment docs.

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.

3 participants