Skip to content

Commit

Permalink
Fix nullability issue in NetBuffer.ReadString()
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Dec 15, 2023
1 parent 5e546cf commit 45f89ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lidgren.Network/NetBuffer.Read.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public string ReadString()
throw new NetException(c_readOverflowError);
#else
m_readPosition = m_bitLength;
return null; // unfortunate; but we need to protect against DDOS
return ""; // unfortunate; but we need to protect against DDOS
#endif
}

Expand Down

0 comments on commit 45f89ca

Please sign in to comment.