On Nontrivial Solutions of a Nonlinear Schrödinger Equation with Magnetic Field