Share

JEuclid

Tracker: Bugs

5 NPE in Mo.calcXScaleFactor - ID: 2689811
Last Update: Settings changed ( maxberger )

If I call JMathComponent with a very simple MathML fragment containing a
sum operator, a NullPointerException happens.

This produces the exception: <mrow><mo>&#x2211;</mo></mrow>
This works: <math><mrow><mo>&#x2211;</mo></mrow></math>
This works: <mrow><mo>&#x2211;</mo><mi>x</mi></mrow>

The attached test case produces the exception.


Sebastian Wirzkowski ( wirzkowski ) - 2009-03-17 09:26

5

Closed

Fixed

Max Berger

Other

development

Public


Comment ( 1 )

Date: 2009-03-20 12:40
Sender: maxbergerProject AdminAccepting Donations

Sebastian,

thank you for the exact bug report, this way I was able to reproduce and
fix the bug (rev. 904, Jeuclid 3.1.5).

Since an mrow with a single element is supposed to be treated as if it
would not exist, this mo had no "parent" element, which it searches for
when calculating possible streching.

Max


Attached File ( 1 )

Filename Description Download
JEuclidBugMrowMo.java produces a NPE Download

Changes ( 9 )

Field Old Value Date By
close_date - 2009-03-20 12:40 maxberger
category_id MathViewer 2009-03-20 12:40 maxberger
assigned_to nobody 2009-03-20 12:40 maxberger
allow_comments 1 2009-03-20 12:40 maxberger
status_id Open 2009-03-20 12:40 maxberger
resolution_id None 2009-03-20 12:40 maxberger
File Added 318152: JEuclidBugMrowMo.java 2009-03-17 09:29 wirzkowski
File Deleted 318151: 2009-03-17 09:28 wirzkowski
File Added 318151: JEuclidBugMrowMo.java 2009-03-17 09:26 wirzkowski