Skip to content

Crash when using KeyValue.loadAsText() with local appinfo file.  #215

@LossyDragon

Description

@LossyDragon

Expected Behavior

Should be able to parse a local appinfo vdf text file into KeyValues.

Actual Behavior

This is probably due to the local file not being read with UTF-8 encoding.

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "s" is null
	at in.dragonbra.javasteam.types.KVTextReader.<init>(KVTextReader.java:59)
	at in.dragonbra.javasteam.types.KeyValue.readAsText(KeyValue.java:357)
	at in.dragonbra.javasteam.types.KeyValue.loadFromFile(KeyValue.java:452)
	at in.dragonbra.javasteam.types.KeyValue.loadAsText(KeyValue.java:424)
	at in.dragonbra.javasteamsamples._4friends.TestKV.main(TestKV.java:12)

Steps to Reproduce the Problem

  1. Call SteamApps.picsGetProductInfo() with metadata true
  2. Locally download the .gz file and extract the text file
  3. Call method KeyValue.loadAsText()

Specifications

  • Version: 1.1.0
  • Platform: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions