juliocamarero/liferay-portal — pull request #941 by matethurzo (2012-12-13 23:26:50+00:00)
Title: LPS-31513 Fix NPE when importing article version older then the latest

Hey Julio,

In this case the approach how we modified that single article was wrong. If there was no existing article, the service method set the article variable to null which ended up in an NPE.

Dániel's change goes the other way around: check if there is an existing one and if there is one then set the article variable keeping it's consistency later.

Thanks,

Máté