From 5f0bd2388b3bd2766753bc4176a7dcef9f4c7adc Mon Sep 17 00:00:00 2001 From: Evgeny Gorbovoy Date: Mon, 21 Oct 2024 19:50:11 +0200 Subject: [PATCH] newer analysis version and null referene fix --- .github/workflows/editorconfig.yml | 3 ++- src/Consolonia.Core/Drawing/DrawingContextImpl.cs | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml index 15c51069..66b09d38 100644 --- a/.github/workflows/editorconfig.yml +++ b/.github/workflows/editorconfig.yml @@ -34,10 +34,11 @@ jobs: working-directory: ./src - name: Inspect code - uses: muno92/resharper_inspectcode@1.4.0 + uses: muno92/resharper_inspectcode@1.12.0 with: solutionPath: ./src/Consolonia.sln exclude: "**Consolonia.GuiCS/**.*;**Consolonia.Gallery/**.*;**Example/**.*" + version: '2021.1.5' - name: install-resharper run: | diff --git a/src/Consolonia.Core/Drawing/DrawingContextImpl.cs b/src/Consolonia.Core/Drawing/DrawingContextImpl.cs index 52854892..e14a9350 100644 --- a/src/Consolonia.Core/Drawing/DrawingContextImpl.cs +++ b/src/Consolonia.Core/Drawing/DrawingContextImpl.cs @@ -118,9 +118,8 @@ public void DrawGeometry(IBrush brush, IPen pen, IGeometryImpl geometry) throw new NotImplementedException(); case ISceneBrush sceneBrush: { - ISceneBrushContent sceneBrushContent = sceneBrush.CreateContent()!; - sceneBrushContent.Render(this, Matrix.Identity); - + ISceneBrushContent sceneBrushContent = sceneBrush.CreateContent(); + sceneBrushContent!.Render(this, Matrix.Identity); return; } }