Added null check to prevent crash when right clicking on air.