Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #85 from vikulin/master
Browse files Browse the repository at this point in the history
NPE fix in class loader
  • Loading branch information
vikulin authored Dec 21, 2022
2 parents d34c316 + 95d48cf commit 91ddb4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "io.github.chronosx88.yggdrasil"
minSdkVersion 15
targetSdkVersion 33
versionCode 41
versionName "2.1.5"
versionCode 42
versionName "2.1.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/org/yggdrasil/app/crispa/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ class MainActivity : AppCompatActivity() {
val sourceDir: String = this.applicationInfo.sourceDir
val dexFile = DexFile(sourceDir)
val cl = classLoader
if (cl != null) {
try {
val c: Class<*> = dexFile.loadClass("dummy/Dummy", cl)
} catch (_: NullPointerException){
//there is nothing we can do
}
}
val versionName = findViewById<Button>(R.id.about)
Expand Down

0 comments on commit 91ddb4f

Please sign in to comment.