Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Small bug in

 Post Reply Post Reply
Author
Grobety Stephane View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 Jan 2014
Posts: 133
Post Options Post Options   Quote Grobety Stephane Quote  Post ReplyReply Direct Link To This Post Topic: Small bug in
    Posted: 14 Mar 2018 at 12:15pm
I would like to suggest a small fix to CloudAdvTerrViewAdapter that will prevent an AV if the base folder of the connected server is empty (for instance, if you use a sandboxed app in DropBox)

---
 TMS VCL Cloud Pack/CloudAdvTreeviewAdapter.pas | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/TMS VCL Cloud Pack/CloudAdvTreeviewAdapter.pas b/TMS VCL Cloud Pack/CloudAdvTreeviewAdapter.pas
index af1ddbc..be06629 100644
--- a/TMS VCL Cloud Pack/CloudAdvTreeviewAdapter.pas
+++ b/TMS VCL Cloud Pack/CloudAdvTreeviewAdapter.pas
@@ -114,6 +114,8 @@ var
     end;
   end;
 begin
+  if not Assigned(Drive) then
+     exit();
   for i := 0 to Drive.Count - 1 do
   begin
     tn := ATreeView.AddNode(ParentNode);
-- 
2.16.2.windows.1

Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2213
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 15 Mar 2018 at 9:48am
Hi,

Thank you for your suggestion.
We'll investigate if this change can be implemented in the next release of TMS VCL Cloud Pack.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down