Skip to content

Commit caaeb28

Browse files
committed
review comments
1 parent 297e6d6 commit caaeb28

4 files changed

Lines changed: 53 additions & 60 deletions

File tree

src/LogExpert.Core/Classes/Persister/Persister.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ private static PersistenceData LoadInternal (string fileName)
283283

284284
return data;
285285
}
286-
catch (Exception ex) when (ex is UnauthorizedAccessException or
286+
catch (Exception ex) when (ex is JsonSerializationException or
287+
UnauthorizedAccessException or
287288
IOException)
288289
{
289290
_logger.Error(ex, $"Error loading persistence data from {fileName}");

src/LogExpert.Core/Classes/Persister/ProjectPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static ProjectData LoadProjectData (string projectFileName)
2828
IOException)
2929
{
3030
_logger.Error(ex, $"Error loading persistence data from {projectFileName}");
31-
return null;
31+
return new ProjectData();
3232
}
3333
}
3434

src/LogExpert.Core/Entities/Bookmark.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ public class Bookmark
1010
#region cTor
1111

1212
[JsonConstructor]
13-
public Bookmark ()
14-
{
15-
16-
}
13+
public Bookmark () { }
1714

1815
public Bookmark (int lineNum)
1916
{

0 commit comments

Comments
 (0)