fix a NPE with printing after the last change

This commit is contained in:
smallsql 2011-06-16 20:16:03 +00:00
Родитель af225ffca7
Коммит 8ccc46a738
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -167,7 +167,7 @@ namespace ikvm.awt
// this is required to simulate Graphics.create(), which is not possible in .NET
// we simply call Save on create() an restore this state, if any method is called
// on the current graphics. This will work for almost any use case of create()
if (baseContext.Current != this)
if (baseContext != null && baseContext.Current != this)
{
if (!baseContext.Current.disposed)
{