Resolved getTextLength error in Launcher

Discussion in 'Launcher' started by Tokeli, Feb 9, 2016.

  1. Tokeli

    Tokeli New Member

    Hi! For the life of me, I cannot figure out what's wrong with the launcher that I've compiled. Upon launching, I get two popups of this.

    java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Unknown Source)
    at java.util.regex.Matcher.reset(Unknown Source)
    at java.util.regex.Matcher.<init>(Unknown Source)
    at java.util.regex.Pattern.matcher(Unknown Source)
    at java.util.Formatter.parse(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.lang.String.format(Unknown Source)
    at com.skcraft.launcher.Launcher.getPackagesURL(Launcher.java:320)
    at com.skcraft.launcher.InstanceList$Enumerator.call(InstanceList.java:146)
    at com.skcraft.launcher.InstanceList$Enumerator.call(InstanceList.java:114)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Clicking the "Check for Updates" button causes the same issue. The error makes me think there's something wrong with my JSON files, but I can't see any issues seeing as they're so SIMPLE.

    I'm running JDK/JRE v8.0_74

    And here's a link to my launcher and the package files. Am I just missing something blatantly obvious?

    https://dl.dropboxusercontent.com/u/3553747/minecraft/broken_sklauncher.jar

    https://dl.dropboxusercontent.com/u/3553747/minecraft/latest.json
    https://dl.dropboxusercontent.com/u/3553747/minecraft/packages.json
  2. sk89q

    sk89q Administrator Developer

    You need to put %s somewhere in your packagesListUrl in launcher.properties I think, to represent the current launcher version.

    Try:
    Code (Text):
    packagesListUrl=https://dl.dropboxusercontent.com/u/3553747/minecraft/packages.json?version=%s
  3. Tokeli

    Tokeli New Member

    Lord, it was an even simpler issue than that. Somehow an S got in there, it's actually "packageListUrl". Thank you so much for the quick reply, though, and thank you for the amazing launcher in the first place! <3