summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/prc/PRCbitStream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/prc/PRCbitStream.cc')
-rw-r--r--Build/source/utils/asymptote/prc/PRCbitStream.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/prc/PRCbitStream.cc b/Build/source/utils/asymptote/prc/PRCbitStream.cc
index 5df27320e45..6ee4d8b45e7 100644
--- a/Build/source/utils/asymptote/prc/PRCbitStream.cc
+++ b/Build/source/utils/asymptote/prc/PRCbitStream.cc
@@ -270,6 +270,11 @@ PRCbitStream& PRCbitStream::operator <<(double value)
PRCbitStream& PRCbitStream::operator <<(const char* s)
{
+ if (s == NULL)
+ {
+ writeBit(false); // string is NULL
+ return *this;
+ }
string str(s);
*this << str;
return *this;