Skip to content

Commit

Permalink
Add null check when converting Sound to mono before passing to base c…
Browse files Browse the repository at this point in the history
…lass constructor.
  • Loading branch information
alekstorm committed Apr 28, 2011
1 parent 2eb5db8 commit 42ef47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fon/PointEditor.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 42ef47d

Please sign in to comment.