Skip to content

Commit

Permalink
Item11135: Don't try to finish undef
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@13501 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Dec 22, 2011
1 parent 47defb9 commit 2017dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnitTestContrib/test/unit/FoswikiTestCase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ __DO NOT CALL session->finish() yourself__
sub createNewFoswikiSession {
my $this = shift;

$this->{session}->finish();
$this->{session}->finish() if $this->{session};
$this->{session} = new Foswiki(@_ );
$Foswiki::Plugins::SESSION = $this->{session};
($this->{test_topicObject}) = Foswiki::Func::readTopic($this->{test_web}, $this->{test_topic});
Expand Down

0 comments on commit 2017dc0

Please sign in to comment.