//\r
DumpNode (&Str, (VOID *) DeviceNode, DisplayOnly, AllowShortcuts);\r
\r
+ ASSERT (Str.Str != NULL);\r
return Str.Str;\r
}\r
\r
DevPathNode = NextDevicePathNode (DevPathNode);\r
}\r
\r
- return Str.Str;\r
+ if (Str.Str == NULL) {\r
+ return AllocateZeroPool (sizeof (CHAR16));\r
+ } else {\r
+ return Str.Str;\r
+ }\r
}\r