AddEventListener: Listener cannot be nil
snippet in lua

AddEventListener: Listener cannot be nil

user6707

 local function pushBalloon( event )
    local tappedBalloon = event.target
        --  balloon:applyLinearImpulse( 0.2, -2, balloon.x, balloon.y )
        -- tapCount = tapCount + 1
        -- tapText.text = tapCount 
        if event.phase == "began" then
         tappedBalloon.gravityScale = 10
         end

 end

    ...

 newBalloon:addEventListener( "tap", pushBalloon )