File tree 1 file changed +2
-2
lines changed
patches/src/main/kotlin/app/revanced/patches/shared/misc/extension
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ fun sharedExtensionPatch(
20
20
extendWith(" extensions/shared.rve" )
21
21
22
22
execute {
23
- if (classBy { EXTENSION_CLASS_DESCRIPTOR in it.type } == null ) {
23
+ if (classes.none { EXTENSION_CLASS_DESCRIPTOR == it.type }) {
24
24
throw PatchException (
25
25
" Shared extension has not been merged yet. This patch can not succeed without merging it." ,
26
26
)
@@ -35,7 +35,7 @@ fun sharedExtensionPatch(
35
35
*/
36
36
fun getCurrentJarFilePath (): String {
37
37
val className = object {}::class .java.enclosingClass.name.replace(' .' , ' /' ) + " .class"
38
- val classUrl = object {}::class .java.classLoader.getResource(className)
38
+ val classUrl = object {}::class .java.classLoader? .getResource(className)
39
39
if (classUrl != null ) {
40
40
val urlString = classUrl.toString()
41
41
You can’t perform that action at this time.
0 commit comments