Feature/805 project structure

@iperdomo fixed in
https://github.com/akvo/akvo-flow/commit/a57c3aff51d1031d356b4e60b85f9de1903a1350

I wasn't sure what to do in the case that we can't find the project we are
trying to copy so I just log a warning.

On Thu, Nov 20, 2014 at 5:35 PM, Iván Perdomo <notifications@github.com>
wrote:

> In GAE/src/org/waterforpeople/mapping/app/web/rest/ActionRestService.java:
>
> > @@ -305,4 +318,30 @@ private String newApkVersion(String version) {
> >              return "";
> >          }
> >      }
> > +
> > +    private String copyProject(Long targetId, Long folderId) {
> > +
> > +        SurveyGroup projectSource = surveyGroupDao.getByKey(targetId);
> > +        SurveyGroup projectCopy = new SurveyGroup();
>
> We should check if we have a projectSource to avoid a NPE
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/akvo/akvo-flow/pull/916/files#r20653033>.
>