Thanks for the idea, but it says null too, because the other entity is not performing collision detection.
Anyways, I solved my problem dividing the c_move in a movement downwards, storing the values for the ground, and another c_trace for the movement sideways. Thank God this worked, and thanks for your reply.