Skip to content

Commit 19e63f9

Browse files
author
rjmatthews62
committed
Fix to issue 616 (editor npe in autoclose on unsupported scripts)
1 parent 252d879 commit 19e63f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

android/Common/src/com/googlecode/android_scripting/language/SupportedLanguages.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public static Language getLanguageByExtension(String extension) {
4848
Language lang = null;
4949

5050
Class<? extends Language> clazz = sSupportedLanguages.get(extension);
51+
if (clazz == null) {
52+
clazz = Language.class; // revert to default language.
53+
}
5154
if (clazz != null) {
5255
try {
5356
lang = clazz.newInstance();

android/ScriptingLayerForAndroid/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
package="com.googlecode.android_scripting"
5-
android:installLocation="auto" android:versionCode="405" android:versionName="5x05">
5+
android:installLocation="auto" android:versionCode="406" android:versionName="5x06">
66
<uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>
77
<uses-permission android:name="net.dinglisch.android.tasker.PERMISSION_RUN_TASKS"></uses-permission>
88
<application

0 commit comments

Comments
 (0)