diff --git a/websocket-sharp/Net/NetworkCredential.cs b/websocket-sharp/Net/NetworkCredential.cs
index d2d392ce..397ac094 100644
--- a/websocket-sharp/Net/NetworkCredential.cs
+++ b/websocket-sharp/Net/NetworkCredential.cs
@@ -64,7 +64,7 @@ namespace WebSocketSharp.Net
/// is empty.
///
public NetworkCredential (string username, string password)
- : this (username, password, null, new string[0])
+ : this (username, password, null, null)
{
}
@@ -151,11 +151,11 @@ namespace WebSocketSharp.Net
///
///
/// An array of that contains the role names to which
- /// the user associated with the credentials belongs.
+ /// the user associated with the credentials belongs if any.
///
public string[] Roles {
get {
- return _roles;
+ return _roles ?? (_roles = new string[0]);
}
internal set {