Index: /trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java
===================================================================
--- /trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java	(revision 295)
+++ /trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java	(revision 296)
@@ -44,4 +44,5 @@
 	 * Writes all received {@link MouseEvent}s and {@link KeyEvent}s to the
 	 * {@link #outputWriter}.
+	 * </p>
 	 * 
 	 * @see java.awt.event.AWTEventListener#eventDispatched(java.awt.AWTEvent)
@@ -133,14 +134,19 @@
 					String text = (String) method.invoke(component,
 							new Object[] {});
-					builder.append("  <param name=\"getText\" value=\"" + text + "\" />" + ENDLINE);
+					if( text!=null ) {
+						builder.append("  <param name=\"getText\" value=\"" + text + "\" />" + ENDLINE);
+					}
 				}
 				if (method.getName() == "getTitle") {
 					String title = (String) method.invoke(component,
 							new Object[] {});
-					builder.append("  <param name=\"getTitle\" value=\"" + title + "\" />" + ENDLINE);
+					if( title!=null ) {
+						builder.append("  <param name=\"getTitle\" value=\"" + title + "\" />" + ENDLINE);
+					}
 				}
 			} catch (IllegalArgumentException e) {
 			} catch (IllegalAccessException e) {
 			} catch (InvocationTargetException e) {
+				System.err.println("Found method with name " + method.getName() + " but could not access it.");
 			}
 		}
