---
id: change/al-go/2257
type: change
title: "#2257 Test Result Analyzer fails if no stack trace is available"
summary: Fixed Test Result Analyzer to handle XML elements without stack traces by using InnerText instead of the potentially null text property.
tier: official
language: en
tags:
  - fix
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:58.456Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 252b22276a1e3c495a2ab8c8167cdd6a84cb3bbb
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2257
    title: "microsoft/AL-Go#2257: Test Result Analyzer fails if no stack trace is available"
    date: "2026-07-29"
    commit: 252b22276a1e3c495a2ab8c8167cdd6a84cb3bbb
    t: null
    quote: TestResultAnalyzer uses "#Text", which might be null instead of InnerText
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2257
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2257
kind: pr
base_branch: main
major: null
merged_at: "2026-07-29T07:23:44Z"
author: FreundDK
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 3
  deletions: 2
  al: 1
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/AnalyzeTests/TestResultAnalyzer.ps1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 2256
work_items: []
systems:
  - development
  - platform
quote: TestResultAnalyzer uses "#Text", which might be null instead of InnerText
joined_against:
  major: null
  commit: null
---

# #2257 Test Result Analyzer fails if no stack trace is available

> Fixed Test Result Analyzer to handle XML elements without stack traces by using InnerText instead of the potentially null text property.

[Pull request](https://github.com/microsoft/AL-Go/pull/2257) · merged into `main` on 2026-07-29 by FreundDK · 2 files (+3 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Switched from #Text to InnerText for XML element content retrieval
- Prevents null reference errors when analyzing test results with empty stack traces
- Ensures the analyzer handles edge cases in test failure reporting
- Uses safer XML property access pattern
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/AnalyzeTests/TestResultAnalyzer.ps1`: modified, not in the BC? snapshot

## Context

- Fixes: [#2256 [Bug]: Test Result Analyzer fails if no stack trace is available](https://github.com/microsoft/AL-Go/issues/2256) (closed)
- Systems: development, platform
- From the description: "TestResultAnalyzer uses "#Text", which might be null instead of InnerText"

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
