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 NullPointerException, assume unknown OS is *nix with shared object. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tatergirl
Copy link

If the os reported by System.getProperty("os.name") is not one of the 3 that are expected, GetOS() will try to compare a string against NULL, throwing an uncaught exception. This is not the best fix, but it will at least prevent a NullPointerException.

I found this problem while trying to run this mod on OpenBSD 7.5 and having it crash due to this :3

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