sergiogonzalez/liferay-portal — pull request #340 by KocsisDaniel (2012-09-06 07:21:15+00:00)
Title: [TECH SUPPORT] LPS-27343 

Hi Sergio,

to reproduce the issue:
1, open your user profile
2, click on phone addresses
3, type some invalid address and save (it will show some validation error)
4, click on cancel -> you will see exceptions in the log

The reason is there is not any redirect or backURL in the request so these will be null and when the taglib tries to generate the cancel button url it starts from the errored URL which leads to this error. To prevent that we have to define the backURL which can be the currentURL as a worst-case-scenario with this fix.

Thanks,
Daniel