Datafield works on simulator but not on the edge

I have been developing a datafield, but I had the problem that it is working very well on the simulator but there is an issue when I installed into the edge device:

when installing the datafield on my edge I got the screen like a flash and then a white page with the blue "IQ" letters an exclamation mark on the middle.

Normally I just restart the device and after that it worked. However, now that I am adding additional features to my datafield, it is not longer working with this method. 

Same behavior if I installed the datafield using connectIQ or sideload

So I will appreciate your kindly help so that I can understand what I am doing wrong.

I have the code on git, so your guidance will be really appreciated.

link to github

By the way, the errors I got from the log are:

ERROR: Unhandled Exception

DETAILS: NONE

STORE_ID: 19d85c19728443e18683edd87f79b472

CALLSTACK:

UnexpectedTypeException: Expected Number/Float/Long/Double, given null/Number

ERROR: Unexpected Type Error

DETAILS: Failed invoking <symbol>

STORE_ID: 00000000000000000000000000000000

CALLSTACK:

                @PC = 0x10003939

ERROR: Unhandled Exception

DETAILS: NONE

STORE_ID: 00000000000000000000000000000000

CALLSTACK:

UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given null

native function