[SOLVED] Error in rule

Getting this error:

2018-11-14 15:42:00.242 [vent.ChannelTriggeredEvent] - logreader:reader:83005b35:newErrorEvent triggered 2018-11-14 15:42:00.078 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Mein Wecker': An error occurred during the script execution: Could not invoke method: org.eclipse.xtext.xbase.lib.IntegerExtensions.operator_equals(int,int) on instance: null

On this rule:

rule "Mein Wecker"
    when
        Time cron "0 0/1 * * * ?"
    then

    
    switch now.getDayOfWeek{
        case 1: Heute = "MO"
        case 2: Heute = "DI"
        case 3: Heute= "MI"
        case 4: Heute= "DO"
        case 5: Heute= "FR"
        case 6: Heute= "SA"
        case 7: Heute= "SO"
    }
    if (gPERSON1Wecker.members.filter[s | s.name == "PERSON1_WECKER_"+Heute].head.state == ON) {
		sollMinute = (gPERSON1Wecker.members.filter[s | s.name == "PERSON1_WECKER_"+Heute+"_M"].head.state as Number).intValue
		sollStunde = (gPERSON1Wecker.members.filter[s | s.name == "PERSON1_WECKER_"+Heute+"_H"].head.state as Number).intValue
		RunTime = (gPERSON1Wecker.members.filter[s | s.name == "PERSON1_WECKER_"+Heute+"_RUN"].head.state as Number).intValue
		Wecken = true
	}
 
		if (sollMinute == now.getMinuteOfHour && sollStunde == now.getHourOfDay && Wecken==true) {
                        //WECKER_AKTIV to ON, so you can react to a move sensor downstairs or in the kitchen
                        // i use this for a squeezeboxspeak "Good morning. it is soandsomuch degrees"
                        // see rule "react to move"
                        //remove all references if you don't want/need this
			sendCommand(PERSON1_WECKER_AKTIV,ON)	
			//Do Stuff here, like turn on lights,coffee machine and/or radio
			//Lichter
			Yeelights_1.sendCommand(ON)
			Yeelights_2.sendCommand(ON)

			//Alexa TTS
			AlexaSZ_start.sendCommand('GoodMorning')
			AlexaSZ_start.sendCommand('Weather')
			AlexaSZ_start.sendCommand('Traffic')
			
			//Benachrichtigungen
			sendBroadcastNotification("Ab geht's aufstehen, heute wird ein schöner Tag! Heute hat es "+ YahooTemperatur.toString + " grad.")
			logInfo("Wecker Event wurde ausgelöst", "Die Wecker Aktivitäten werden ausgeführt, Runtime ist " + Runtime + " Minuten lang!")
			    AlexaSZ_MusicProviderId.sendCommand('SPOTIFY')
    			//AlexaSZ_PlayMusicCommand.sendCommand('Playlist Techno')
				AlexaSZ_Player.sendCommand('PLAY')
				AlexaSZ_Volume.sendCommand(50)
			timerPERSON1Wecker = createTimer(now.plusMinutes(RunTime)) [|
				//turn lights,radio etc. of after defined time for day.
                                //sanity check turn off wecker_aktiv
								gLights.sendCommand(OFF)
								AlexaSZ_TTS.sendCommand("Ich hoffe du bist schon aus dem Bett du Schlafmütze")
								AlexaSZ_Player.sendCommand('PAUSE')
								 AlexaSZ_start.sendCommand('FlashBriefing')
				sendCommand(PERSON1_WECKER_AKTIV,OFF)
				timerPERSON1Wecker = null
				]
		}
end

I don’t quite understand the error and therefore I can’t detect the exception. Can someone help?

The error describes tat you try to compare something, but there is nothing to compare. Means you try to get for example a stae from an item while the item is null.

My Suggestion ist to include some logInfo statements to see where the rule terminates…
First guess the group gPERSON1Wecker is empty

Ah yeah, fixed it already haha thank you

How did you solve it?

I’m getting numeric values with setpoint items, they’ve been null