summaryrefslogtreecommitdiff
path: root/source/compiler/dtutils.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-04-30 23:40:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-04-30 23:40:36 +0000
commita95d9dd0e22ace9a8f960e939af923c79e7a271e (patch)
tree99b9b07bd34bc3ebedbbeeaff97882b0e0778346 /source/compiler/dtutils.c
parenta117a0a6c82c5a5030040bd2b75704a1366741d6 (diff)
Notes
Diffstat (limited to 'source/compiler/dtutils.c')
-rw-r--r--source/compiler/dtutils.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/compiler/dtutils.c b/source/compiler/dtutils.c
index bb07894e2813..55093a7676a6 100644
--- a/source/compiler/dtutils.c
+++ b/source/compiler/dtutils.c
@@ -186,11 +186,20 @@ DtError (
DT_FIELD *FieldObject,
char *ExtraMessage)
{
+ UINT32 Line = 0;
+
+
+ /* Field object could be NULL */
+
+ if (FieldObject)
+ {
+ Line = FieldObject->Line;
+ }
/* Check if user wants to ignore this exception */
if (AslIsExceptionIgnored (AslGbl_Files[ASL_FILE_INPUT].Filename,
- FieldObject->Line, Level, MessageId))
+ Line, Level, MessageId))
{
return;
}