Skip to content

Commit

Permalink
Check if kernel is set before classifying
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 30, 2013
1 parent b798077 commit b6336c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/ui/GUIClassifier.cpp
Expand Up @@ -1147,6 +1147,7 @@ CLabels* CGUIClassifier::classify_kernelmachine()

bool success=true;

REQUIRE(ui->ui_kernel->get_kernel(), "No kernel set");
if (ui->ui_kernel->get_kernel()->get_kernel_type()!=K_CUSTOM)
{
if (ui->ui_kernel->get_kernel()->get_kernel_type()==K_COMBINED
Expand Down

0 comments on commit b6336c9

Please sign in to comment.