Skip to content

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

@ryandkerr

Description

@ryandkerr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions