Skip to content

Commit d681b58

Browse files
committed
Fix issue generating internal docs
1 parent 65bc330 commit d681b58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/code.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ static bool getLinkInScope(yyscan_t yyscanner,
28452845
}
28462846
}
28472847
}
2848-
if (result.found && (!varOnly || result.md->isVariable()))
2848+
if (result.found && result.md && (!varOnly || result.md->isVariable()))
28492849
{
28502850
if (result.md->isLinkable())
28512851
{

src/pycode.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ static bool getLinkInScope(yyscan_t yyscanner,
11741174
input.insideCode = true;
11751175
GetDefResult result = getDefs(input);
11761176
//printf("Trying '%s'::'%s'\n",qPrint(c),qPrint(m));
1177-
if (result.found && result.md->isLinkable())
1177+
if (result.found && result.md && result.md->isLinkable())
11781178
{
11791179
const Definition *d = result.md->getOuterScope()==Doxygen::globalScope ?
11801180
result.md->getBodyDef() : result.md->getOuterScope();

0 commit comments

Comments
 (0)