Make QueryStat.add never throw; also, avoid where it was throwing, upon a null ActionStack

This commit is contained in:
2024-05-02 15:01:09 -05:00
parent 0651fa22af
commit c70f73d9cd

View File

@ -213,6 +213,8 @@ public class QueryStatManager
**
*******************************************************************************/
public void add(QueryStat queryStat)
{
try
{
if(queryStat == null)
{
@ -250,7 +252,7 @@ public class QueryStatManager
if(queryStat.getAction() == null)
{
if(!QContext.getActionStack().isEmpty())
if(QContext.getActionStack() != null && !QContext.getActionStack().isEmpty())
{
queryStat.setAction(QContext.getActionStack().peek().getActionIdentity());
}
@ -281,6 +283,11 @@ public class QueryStatManager
}
}
}
catch(Exception e)
{
LOG.debug("Error adding query stat", e);
}
}