vala r2416 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2416 - in trunk: . vala
- Date: Sun, 1 Feb 2009 23:25:44 +0000 (UTC)
Author: juergbi
Date: Sun Feb 1 23:25:44 2009
New Revision: 2416
URL: http://svn.gnome.org/viewvc/vala?rev=2416&view=rev
Log:
2009-02-02 JÃrg Billeter <j bitron ch>
* vala/valathrowstatement.vala:
Fix crash on invalid error expressions
Modified:
trunk/ChangeLog
trunk/vala/valathrowstatement.vala
Modified: trunk/vala/valathrowstatement.vala
==============================================================================
--- trunk/vala/valathrowstatement.vala (original)
+++ trunk/vala/valathrowstatement.vala Sun Feb 1 23:25:44 2009
@@ -89,6 +89,12 @@
return false;
}
+ if (error_expression.value_type == null) {
+ Report.error (error_expression.source_reference, "invalid error expression");
+ error = true;
+ return false;
+ }
+
if (!(error_expression.value_type is ErrorType)) {
Report.error (error_expression.source_reference, "`%s' is not an error type".printf (error_expression.value_type.to_string ()));
error = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]