fix npe during copy package between projects
Merge pull request #1024 from sgalles/npe-copy-package

fix npe during copy package between two projects