Jire / Overwatcheat

Free, open-source undetected color cheat!
GNU Affero General Public License v3.0
325 stars 91 forks source link

handling null frame exceptions #229

Closed kranercc closed 1 year ago

kranercc commented 1 year ago

It crashes the thread if the framegrabber can't grab a frame? i don't know exactly why it can't grab but when it can't it crashes so this checks if there's some sort of frame insted of null

Jire commented 1 year ago

The most likely reason it fails is game isn't open, or you are capture banned and thus need to use OBS for redirection.

The code you submitted is not valid, and Kotlin is not like C++ where you can check nullability in that way.