damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

NullpointerException with use of PythonForAndroid? #41

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Nexus 4
What firmware version are you running on the device?
4.2.1
What steps will reproduce the problem?
1. Running the following task in Tasker:

Task: Take Silent Photo (14)
    A1: Take Photo X  [ Camera:Front Filename:suspect Naming Sequence:Chronological Insert In Gallery:Off Discreet:On Resolution:1280x960 Scene Mode:Auto White Balance:Auto Flash Mode:Auto ] 
    A2: Notify [ Title:Photo Taken Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
    A3: Send SMS X  [ Number:%REQUESTER Message:%FOTO Store In Messaging App:Off ] 
    A4: Variable Set [ Name:%EMAIL_ATTACH To:%FOTO Do Maths:Off Append:Off ] 
    A5: Variable Set [ Name:%EMAIL_USER To:markstrom.martin Do Maths:Off Append:Off ] 
    A6: Variable Set [ Name:%EMAIL_PSWD To:xxxxxxxxxx Do Maths:Off Append:Off ] 
    A7: Variable Set [ Name:%EMAIL_TO To:markstrom.martin@gmail.com Do Maths:Off Append:Off ] 
    A8: Run SL4A Script [ Name:sendemailA.py Terminal:Off Pass Variables:%EMAIL_NAME,%EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_SUBJECT,%EMAIL_BODY,%EMAIL_ATTACH ]

What is the expected output? What do you see instead?
An email is expected to be sent.
Instead I get a popup "Unfortunately, SL4A has stopped.", this popup
reappears a few seconds later again as seen in the logcat.

What version of the product are you using? On what operating system?
sl4a_r6.apk
PythonForAndroid_r5.apk
Tasker 1.3.3u2
downloaded 2013-02-06:
http://tasker.wikidot.com/local--files/sl4a/sendemailA.py
OS: android 4.2.1

Please provide any additional information below.

Original issue reported on code.google.com by markstro...@gmail.com on 6 Feb 2013 at 6:10

Attachments:

Copied from original issue: damonkohler/android-scripting#678