From 523df47a654efffd22168384d9c8b2e8b26aafb0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 17 Jun 2019 14:02:35 -0700 Subject: Check for null data ptr --- service/OneService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') diff --git a/service/OneService.cpp b/service/OneService.cpp index b3d6739a..566b4750 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2449,7 +2449,7 @@ public: return; } - if (len >= 0) { + if ((len >= 0)&&(data)) { // Check to see if we've already written this first. This reduces // redundant writes and I/O overhead on most platforms and has // little effect on others. -- cgit v1.2.3