projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27d548
)
[655766] Encode string null attribute argument
author
Marek Safar
<marek.safar@gmail.com>
Fri, 26 Nov 2010 10:21:23 +0000
(10:21 +0000)
committer
Marek Safar
<marek.safar@gmail.com>
Fri, 26 Nov 2010 10:21:23 +0000
(10:21 +0000)
mcs/mcs/attribute.cs
patch
|
blob
|
history
diff --git
a/mcs/mcs/attribute.cs
b/mcs/mcs/attribute.cs
index fd130d3dfb38a87e0a4c98f71e0766590be0c4af..5a399126b1f91c64becf88ad2a0c1e209a6968f1 100644
(file)
--- a/
mcs/mcs/attribute.cs
+++ b/
mcs/mcs/attribute.cs
@@
-1453,8
+1453,10
@@
namespace Mono.CSharp {
public void Encode (string value)
{
- if (value == null)
- throw new ArgumentNullException ();
+ if (value == null) {
+ Stream.Write ((byte) 0xFF);
+ return;
+ }
var buf = Encoding.UTF8.GetBytes(value);
WriteCompressedValue (buf.Length);