View Issue Details

IDProjectCategoryView StatusLast Update
0035840PackagesPackagespublic2019-07-12 21:15
ReporterOndrej PokornyAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0035840: Project groups: fix AV when loaded project is ignored
DescriptionIf a project group is loaded with missing project - and the project is ignored "Target.LoadGroupSettings" raises an AV because Target is nil.
TagsNo tags attached.
Fixed in Revision61579.
LazTarget-
Widgetset
Attached Files
  • projectgroup-AV-load-01.patch (425 bytes)
    Index: projectgroup.pp
    ===================================================================
    --- projectgroup.pp	(revision 61577)
    +++ projectgroup.pp	(working copy)
    @@ -1317,7 +1317,8 @@
               else
                 exit;
               end;
    -        Target.LoadGroupSettings(XMLConfig,APath);
    +        if Target<>nil then
    +          Target.LoadGroupSettings(XMLConfig,APath);
           end;
         finally
           Modified:=false;
    

Activities

Ondrej Pokorny

2019-07-12 18:19

reporter  

projectgroup-AV-load-01.patch (425 bytes)
Index: projectgroup.pp
===================================================================
--- projectgroup.pp	(revision 61577)
+++ projectgroup.pp	(working copy)
@@ -1317,7 +1317,8 @@
           else
             exit;
           end;
-        Target.LoadGroupSettings(XMLConfig,APath);
+        if Target<>nil then
+          Target.LoadGroupSettings(XMLConfig,APath);
       end;
     finally
       Modified:=false;

Issue History

Date Modified Username Field Change
2019-07-12 18:19 Ondrej Pokorny New Issue
2019-07-12 18:19 Ondrej Pokorny File Added: projectgroup-AV-load-01.patch
2019-07-12 18:34 Mattias Gaertner Assigned To => Mattias Gaertner
2019-07-12 18:34 Mattias Gaertner Status new => resolved
2019-07-12 18:34 Mattias Gaertner Resolution open => fixed
2019-07-12 18:34 Mattias Gaertner Fixed in Revision => 61579.
2019-07-12 18:34 Mattias Gaertner LazTarget => -
2019-07-12 21:15 Ondrej Pokorny Status resolved => closed