mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Make QueryStat.add never throw; also, avoid where it was throwing, upon a null ActionStack
This commit is contained in:
@ -213,6 +213,8 @@ public class QueryStatManager
|
|||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public void add(QueryStat queryStat)
|
public void add(QueryStat queryStat)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if(queryStat == null)
|
if(queryStat == null)
|
||||||
{
|
{
|
||||||
@ -250,7 +252,7 @@ public class QueryStatManager
|
|||||||
|
|
||||||
if(queryStat.getAction() == null)
|
if(queryStat.getAction() == null)
|
||||||
{
|
{
|
||||||
if(!QContext.getActionStack().isEmpty())
|
if(QContext.getActionStack() != null && !QContext.getActionStack().isEmpty())
|
||||||
{
|
{
|
||||||
queryStat.setAction(QContext.getActionStack().peek().getActionIdentity());
|
queryStat.setAction(QContext.getActionStack().peek().getActionIdentity());
|
||||||
}
|
}
|
||||||
@ -281,6 +283,11 @@ public class QueryStatManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
LOG.debug("Error adding query stat", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user