Hi,
I refrained for some time to upgrade from "3.0-M6", because newer versions cause some issues in my code when running the application with -Drun.mode=production.
The function that leads to problems is:
def templateId: Box[Int] = S.location match {
case Full(loc) => loc.currentValue match {
case Full(lib.sitemap.VisibleTemplate(t)) if t.id.isDefined => Full(t.id.get)
case _ => Empty
}
case _ => Empty
}
This function would usually return a Full[Int], however when run in production mode in some cases it returns Empty. Works as expected in the default mode.
Do you know immediately what might be the issue or suggest an alternative way to achieve the same result?
Thanks in advance!
Sebastian