A RuneTek3 client (377) that is deobfuscated, converted to Kotlin, and includes QoL improvements.
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix NPE in prepareTitleBackground, add startup stack trace

Remove `imageRGB = null!!` which was a guaranteed NPE — the
original Java set a local variable to null as a GC hint, but
Kotlin's non-nullable type made this a crash. Simply removing
the assignment is sufficient since the local goes out of scope.

Add exception.printStackTrace() to startup catch block for
easier debugging of initialization failures.

+1 -2
+1 -2
src/main/java/com/jagex/runescape/Game.kt
··· 5513 5513 ActorDefinition.client = this 5514 5514 return 5515 5515 } catch (exception: Exception) { 5516 + exception.printStackTrace() 5516 5517 SignLink.reportError("loaderror $aString1027 $anInt1322") 5517 5518 } 5518 5519 ··· 11107 11108 imageRGB = ImageRGB(titleArchive!!, "logo", 0) 11108 11109 aClass18_1198!!.createRasterizer() 11109 11110 imageRGB.drawImage(382 - imageRGB.width / 2 - 128, 18) 11110 - @Suppress("UNUSED_VALUE") 11111 - imageRGB = null!! 11112 11111 System.gc() 11113 11112 } 11114 11113