From f4ec7192a9f2c3ada9f7676ca90942306f910db3 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 27 Apr 2016 16:42:20 +0000 Subject: Add tests to avoid null pointer errors git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Native_File_Chooser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Native_File_Chooser.cxx') diff --git a/src/Fl_Native_File_Chooser.cxx b/src/Fl_Native_File_Chooser.cxx index c5ed7d70d..0fe990995 100644 --- a/src/Fl_Native_File_Chooser.cxx +++ b/src/Fl_Native_File_Chooser.cxx @@ -72,7 +72,7 @@ int Fl_Native_File_Chooser::type() const */ void Fl_Native_File_Chooser::options(int o) { - platform_fnfc->options(o); + if (platform_fnfc) platform_fnfc->options(o); } /** -- cgit v1.2.3