Nullpointer Exception with AutoTools Regex
I am using AutoTools Regex with this regex:
Cookie:((?<start>.*); |)tnm_api=[^;]+(; )?(?<end>.*)
(Regex plus is enable as otherwise "(....|)
" isn't working correctly.)
In my case "(?<end>.*)"
matches the empty string, so %end
won't be set.
Using "Test: %end"
for "Output Text" lead to this exception.
com.joaomgcd.autotools version 2.3.9
Source com.android.vending
OS Build AQ3A.240912.001
OS Code 35
Device
Manufacturer Xiaomi
Product xuanyuan_eea
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:207)
at java.lang.String.replace(String.java:2830)
at com.joaomgcd.autotools.intent.IntentRegex.fillLocalVarsAndValues(SourceFile:62)
at com.joaomgcd.common.tasker.ServiceLongRunningTaskerAction.lambda$signalFinish$0(SourceFile:52)
at com.joaomgcd.common.tasker.ServiceLongRunningTaskerAction.a(Unknown Source:0)
at com.joaomgcd.common.tasker.e0.a(Unknown Source:10)
at com.joaomgcd.common.tasker.BroadcastReceiverTasker.updateTaskerVars(SourceFile:1)
at com.joaomgcd.common.tasker.ServiceLongRunningTaskerAction.signalFinish(SourceFile:2)
at com.joaomgcd.common.tasker.ServiceLongRunningTaskerAction.signalFinish(SourceFile:1)
at com.joaomgcd.common.tasker.IntentServiceFire.onHandleIntent(SourceFile:104)
at com.joaomgcd.common.tasker.IntentServiceParallel.onStart$lambda$2(SourceFile:36)
at com.joaomgcd.common.tasker.IntentServiceParallel.c(Unknown Source:0)
at com.joaomgcd.common.tasker.j.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)