Skip to content

Commit cf9e6da

Browse files
committed
Fixing report issue.
1 parent 7581a9f commit cf9e6da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Services/BackendConfigurationReportService/BackendConfigurationReportService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4444
using Microting.EformBackendConfigurationBase.Infrastructure.Data;
4545
using Microting.ItemsPlanningBase.Infrastructure.Data;
4646
using Microting.ItemsPlanningBase.Infrastructure.Data.Entities;
47+
using Sentry;
4748

4849
namespace BackendConfiguration.Pn.Services.BackendConfigurationReportService;
4950

@@ -448,7 +449,7 @@ await sdkDbContext.FieldOptionTranslations.FirstAsync(x =>
448449
break;
449450
case Constants.FieldTypes.EntitySearch or
450451
Constants.FieldTypes.EntitySelect:
451-
if (caseField.Value != null && caseField.Value != "null")
452+
if (!string.IsNullOrEmpty(caseField.Value) && caseField.Value != "null")
452453
{
453454
var id = int.Parse(caseField.Value);
454455
var match =
@@ -540,6 +541,7 @@ or Constants.FieldTypes.None
540541
}
541542
catch (Exception e)
542543
{
544+
SentrySdk.CaptureException(e);
543545
Trace.TraceError(e.Message);
544546
_logger.LogError(e.Message);
545547
_logger.LogError(e.StackTrace);

0 commit comments

Comments
 (0)