diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index af0e46c..3322dcc 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -141,8 +141,12 @@ class MainActivity : AppCompatActivity() { } val c: Class<*> = dummy.Dummy::class.java val methods: Array = c.declaredMethods - for (i in methods.indices) { - Log.d(TAG,"The method is: " + methods[i].toString()) + if(methods.isEmpty()){ + Log.d(TAG,"No class methods found in dummy.Dummy") + } else { + for (i in methods.indices) { + Log.d(TAG, "The method is: " + methods[i].toString()) + } } }