package com.woopra;

import java.util.Properties;
/**
 * @author Woopra on 1/26/2013
 * 
 */
public class WoopraEvent {
	private String eventName = null;
	private Properties properties = null;

	public WoopraEvent(String eventName) {
		super(eventName, new Properties();
	}

	public WoopraEvent(String eventName, Properties properties) {
		this.properties = properties;
		if (this.properties == null) {
			this.properties = new Properties();
		}
		this.properties.setProperty("name", eventName);
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public void addEventProperties(Properties newProperties) {
		properties.putAll(newProperties);
	}

	public void addEventProperty(String key, String value) {
		properties.setProperty(key, value);
	}
}

package com.woopra;

import java.util.Properties;
/**
 * @author Woopra on 1/26/2013
 * 
 */
public class WoopraEvent {
	private String eventName = null;
	private Properties properties = null;

	public WoopraEvent(String eventName) {
		super(eventName, new Properties();
	}

	public WoopraEvent(String eventName, Properties properties) {
		this.properties = properties;
		this.properties.setProperty("name", eventName);
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public void addEventProperties(Properties newProperties) {
		properties.putAll(newProperties);
	}

	public void addEventProperty(String key, String value) {
		properties.setProperty(key, value);
	}
}

--- 
+++ 
@@ -15,6 +15,9 @@
 
 	public WoopraEvent(String eventName, Properties properties) {
 		this.properties = properties;
+		if (this.properties == null) {
+			this.properties = new Properties();
+		}
 		this.properties.setProperty("name", eventName);
 	}
 
Fix event name not being added in constructor.