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

KPM diagnostic_file.rb raises error if there is no java_system_information #277

Open
ryandkerr opened this issue Aug 29, 2024 · 0 comments

Comments

@ryandkerr
Copy link

ryandkerr commented Aug 29, 2024

This line triggers an error if there is no system_json['java_system_information']

Error:

ERROR -- : undefined method `[]' for nil:NilClass
E, [2024-08-28T23:46:25.887016 #103040] ERROR -- : /tmp/kpm-0.11.1-linux-x86_64/lib/vendor/ruby/2.6.0/gems/kpm-0.11.1/lib/kpm/diagnostic_file.rb:150:in `system_catalina_base'

IDK how common this is, but it happens when I try to use kpm diagnostic.

I fixed the issue locally by adding return if system_json['java_system_information'].nil?

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

No branches or pull requests

1 participant