Selaa lähdekoodia

HPCC-10638 WsWorkunits::WUInfo cores for workunits with no query

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 11 vuotta sitten
vanhempi
commit
25cd2f321e
1 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 7 4
      common/wuwebview/wuwebview.cpp

+ 7 - 4
common/wuwebview/wuwebview.cpp

@@ -691,7 +691,7 @@ void WuWebView::applyResultsXSLT(const char *filename, StringBuffer &out)
 
 
 ILoadedDllEntry *WuWebView::loadDll(bool force)
 ILoadedDllEntry *WuWebView::loadDll(bool force)
 {
 {
-    if (!dll && (force || delayedDll))
+    if (!dll && dllname.length() && (force || delayedDll))
     {
     {
         try
         try
         {
         {
@@ -714,9 +714,12 @@ void WuWebView::setWorkunit(IConstWorkUnit &_cw)
         name.s.replace(' ','_');
         name.s.replace(' ','_');
     }
     }
     Owned<IConstWUQuery> q = cw->getQuery();
     Owned<IConstWUQuery> q = cw->getQuery();
-    q->getQueryDllName(dllname);
-    if (!delayedDll)
-        loadDll(true);
+    if (q)
+    {
+        q->getQueryDllName(dllname);
+        if (!delayedDll)
+            loadDll(true);
+    }
 }
 }
 
 
 void WuWebView::setWorkunit(const char *wuid)
 void WuWebView::setWorkunit(const char *wuid)