Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nil pointer dereference for valid demo #163

Merged
merged 1 commit into from
Nov 28, 2019

Conversation

markus-wa
Copy link
Owner

fixes #162

We just assume the player which cannot be found is a bot and skip it, since all human players were parsed correctly in the demo where this problem was encountered.

@ghost
Copy link

ghost commented Nov 23, 2019

DeepCode Report (#138c28)

DeepCode analyzed this pull request.
There are no new issues.

@markus-wa markus-wa force-pushed the issue/162-nil-dereference-november19-update branch from 8282378 to d70a67c Compare November 23, 2019 22:17
datatables.go Outdated Show resolved Hide resolved
@markus-wa markus-wa force-pushed the issue/162-nil-dereference-november19-update branch from d70a67c to 4c8b109 Compare November 23, 2019 22:32
@codecov
Copy link

codecov bot commented Nov 23, 2019

Codecov Report

Merging #163 into master will increase coverage by 0.26%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #163      +/-   ##
=========================================
+ Coverage   91.53%   91.8%   +0.26%     
=========================================
  Files          29      29              
  Lines        2493    2501       +8     
=========================================
+ Hits         2282    2296      +14     
+ Misses        158     152       -6     
  Partials       53      53
Impacted Files Coverage Δ
parser.go 85.91% <ø> (ø) ⬆️
common/player.go 90.76% <ø> (ø) ⬆️
datatables.go 98.89% <100%> (+0.01%) ⬆️
game_events.go 96.78% <100%> (+1.01%) ⬆️
user_messages.go 91.17% <0%> (+2.94%) ⬆️

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 dbcfdea...138c28f. Read the comment docs.

@markus-wa markus-wa force-pushed the issue/162-nil-dereference-november19-update branch from 4c8b109 to bc4bf26 Compare November 28, 2019 19:56
datatables.go Show resolved Hide resolved
parser.go Show resolved Hide resolved
we just assume it's a bot since all human players were parsed correctly
in the demo where this problem was encountered.
@markus-wa markus-wa force-pushed the issue/162-nil-dereference-november19-update branch from bc4bf26 to 138c28f Compare November 28, 2019 20:05
@codeclimate
Copy link

codeclimate bot commented Nov 28, 2019

Code Climate has analyzed commit 138c28f and detected 0 issues on this pull request.

View more on Code Climate.

@markus-wa markus-wa changed the title fix nil pointer dereference for valid demo (#162) fix nil pointer dereference for valid demo Nov 28, 2019
@markus-wa markus-wa merged commit 944a72d into master Nov 28, 2019
@markus-wa markus-wa deleted the issue/162-nil-dereference-november19-update branch November 28, 2019 21:47
xavier-rodet pushed a commit to xavier-rodet/demoinfocs-golang that referenced this pull request Dec 1, 2019
…#163)

we just assume it's a bot since all human players were parsed correctly
in the demo where this problem was encountered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime error when parsing demo file
2 participants