diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs
index 11f7f39d..e04d202c 100644
--- a/websocket-sharp/Server/HttpServer.cs
+++ b/websocket-sharp/Server/HttpServer.cs
@@ -518,12 +518,24 @@ namespace WebSocketSharp.Server
/// A that represents the document root path of the server.
/// The default value is "./Public".
///
+ ///
+ /// The value specified for a set operation is .
+ ///
+ ///
+ /// The value specified for a set operation is an empty string.
+ ///
public string RootPath {
get {
return _rootPath != null && _rootPath.Length > 0 ? _rootPath : (_rootPath = "./Public");
}
set {
+ if (value == null)
+ throw new ArgumentNullException ("value");
+
+ if (value.Length == 0)
+ throw new ArgumentException ("An empty string.", "value");
+
string msg;
if (!canSet (out msg)) {
_log.Warn (msg);