A1: Java Function [ Return: Class Or Object:Color Function:RGBToHSV {} (int, int, int, float[]) Param:250 Param:0 Param:250 Param:hsv Param: Param: Param: ]
14.53.10/E Java Function: ->
14.53.10/JU analyse: target: Color expected: null
14.53.10/JU target: analyse done: Color: class: android.graphics.Color obj: null partWithoutMods: null static: true const false casted: false
14.53.10/JU analyse: returnval: java.lang.Void expected: null
14.53.10/JU returnval: analyse done: java.lang.Void: class: java.lang.Void obj: null partWithoutMods: null static: true const false casted: false
14.53.10/JU initClass: class: java.lang.Void obj: null partWithoutMods: java.lang.Void static: true const false casted: false
14.53.10/JU initClass: retnovar: init with array handling -> class java.lang.Void
14.53.10/JU initClass: class: android.graphics.Color obj: null partWithoutMods: android.graphics.Color static: true const false casted: false
14.53.10/JU initClass: target: init with array handling -> class android.graphics.Color
14.53.10/JU analyse: param0: 250 expected: int
14.53.10/JU param0: analyse done: 250: class: int obj: 250 partWithoutMods: null static: false const true casted: false
14.53.10/E param 0 class: int
14.53.10/JU analyse: param1: 0 expected: int
14.53.10/JU param1: analyse done: 0: class: int obj: 0 partWithoutMods: null static: false const true casted: false
14.53.10/E param 1 class: int
14.53.10/JU analyse: param2: 250 expected: int
14.53.10/JU param2: analyse done: 250: class: int obj: 250 partWithoutMods: null static: false const true casted: false
14.53.10/E param 2 class: int
14.53.10/JU analyse: param3: hsv expected: class [F
14.53.10/JU param3: analyse done: hsv: class: ??? obj: null partWithoutMods: null static: false const false casted: false
14.53.10/E param 3 class: class [F
14.53.10/E targetClass: class android.graphics.Color
14.53.10/E object: null
14.53.10/E method: public static void android.graphics.Color.RGBToHSV(int,int,int,float[])
14.53.10/E arg0 class java.lang.Integer value 250
14.53.10/E arg1 class java.lang.Integer value 0
14.53.10/E arg2 class java.lang.Integer value 250
14.53.10/E arg3 class null value null
14.53.10/E Java Function: java.lang.reflect.InvocationTargetException
14.53.10/ Caused by: java.lang.NullPointerException
14.53.10/ android.graphics.Color.RGBToHSV(Color.java:320)
14.53.10/ java.lang.reflect.Method.invokeNative(Native Method)
14.53.10/ java.lang.reflect.Method.invoke(Method.java:515)
14.53.10/ net.dinglisch.android.taskerm.ExecuteService.c(Unknown Source)
14.53.10/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source)
14.53.10/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source)
Any help would be much appreciated. Apologies for my stupidity when it comes to java as its something i've never touch upon before.
Regards
Scott
The problem is the hsv parameter. What is hsv in your task? You need to create a float array.
Yep, you need to use float array but I just checked and I didn't find an easy way to create it actually because Tasker support array of objects and not array primitives, and you cannot use Float[] where it's required float[].