From 42ef47d029956f6d1dec1f13cd5f5cbc775172c6 Mon Sep 17 00:00:00 2001 From: Alek Storm Date: Thu, 28 Apr 2011 12:05:29 -0500 Subject: [PATCH] Add null check when converting Sound to mono before passing to base class constructor. --- src/fon/PointEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fon/PointEditor.cpp b/src/fon/PointEditor.cpp index 850413b..dd5b700 100644 --- a/src/fon/PointEditor.cpp +++ b/src/fon/PointEditor.cpp @@ -39,7 +39,7 @@ #include "VoiceAnalysis.h" PointEditor::PointEditor (GuiObject parent, const wchar_t *title, PointProcess point, Sound sound) - : TimeSoundEditor (parent, title, point, Sound_convertToMono (sound), false), + : TimeSoundEditor (parent, title, point, sound ? Sound_convertToMono (sound) : NULL, false), _monoSound(NULL) { createMenus (); if (sound) {