diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-17 15:02:01 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-17 15:02:01 +0000 |
commit | 72fdcd0ff3c39f85deb6757467d8405d2b4d8780 (patch) | |
tree | 52f96b8e1e348c0367086282bf73ac1307e1d2ef /java/sca/modules | |
parent | f54d9acc1df87cd5de5984066bdebe4d1f5c7df3 (diff) |
Write a message if some code is trying to use the monitor but the monitor is null
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805002 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java b/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java index 9fe13020a6..87f115df7f 100644 --- a/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java +++ b/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java @@ -144,6 +144,12 @@ public abstract class Monitor { messageId, (Object[])messageParameters); monitor.problem(problem); + } else { + System.out.println("Attempt to report warning with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } @@ -171,6 +177,12 @@ public abstract class Monitor { messageId, (Object[])messageParameters); monitor.problem(problem); + } else { + System.out.println("Attempt to report error with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } @@ -198,6 +210,12 @@ public abstract class Monitor { messageId, cause); monitor.problem(problem); + } else { + System.out.println("Attempt to report error with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } |