瀏覽代碼

Merge pull request #5280 from afishbeck/getResourceListCore

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

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 年之前
父節點
當前提交
e33e2e2eac
共有 1 個文件被更改,包括 7 次插入4 次删除
  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)
 {
-    if (!dll && (force || delayedDll))
+    if (!dll && dllname.length() && (force || delayedDll))
     {
         try
         {
@@ -714,9 +714,12 @@ void WuWebView::setWorkunit(IConstWorkUnit &_cw)
         name.s.replace(' ','_');
     }
     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)