Back

LL078

Possible nil dereference

Object Pascal — Delphi & Free Pascal
Warning
Reliability

Chaining member access on nil-returning functions causes access violations

chaining member access on nil-returning functions causes access violations.

Why this severity

chaining member access on nil-returning functions causes access violations.


Known false positives

functions guaranteed non-nil by documented contracts.

Remediation example

Comp := FindComponent('Edit1');
if Assigned(Comp) then
  TEdit(Comp).Text := 'Hello';

Reconnecting… Connection lost. Reload