Skip to content

Commit a39729c

Browse files
committed
修复广播运行autox.js脚本不能传path问题
1 parent c9f8196 commit a39729c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/autojs/autojs/external/ScriptIntents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static boolean isTaskerBundleValid(Bundle bundle) {
3737
public static boolean handleIntent(Context context, Intent intent) {
3838
String path = getPath(intent);
3939
String script = intent.getStringExtra(ScriptIntents.EXTRA_KEY_PRE_EXECUTE_SCRIPT);
40-
if(com.stardust.util.TextUtils.isBase64(script)){
40+
if(script!=null && com.stardust.util.TextUtils.isBase64(script)){
4141
try{
4242
String newScript = Base64Utils.base64Decode(script);
4343
if(!TextUtils.isEmpty(newScript)){

0 commit comments

Comments
 (0)