1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Projucer: Fixed a potential crash when reloading a GUI builder document

This commit is contained in:
ed 2019-03-07 09:24:23 +00:00
parent 4a294eaa39
commit 526272c4f5

View file

@ -69,7 +69,12 @@ void SourceCodeDocument::reloadInternal()
auto lineFeed = getLineFeedForFile (fileContent);
if (lineFeed.isEmpty())
lineFeed = project->getProjectLineFeed();
{
if (project != nullptr)
lineFeed = project->getProjectLineFeed();
else
lineFeed = "\r\n";
}
codeDoc->setNewLineCharacters (lineFeed);