Judge dismisses case against CBD company