When looking at #3082563: Error: Call to a member function fromJulianDay() on nul, I realised that there might be an edge case where the algorithm property of the \Drupal\taarikh\Plugin\TaarikhAlgorithm\TaarikhAlgorithmPluginBase would not get initialised. This is not a valid scenario. We should harden up the code to not allow that.

Comments

hussainweb created an issue. See original summary.

  • hussainweb committed a11811b on 8.x-1.x
    Issue #3085841 by hussainweb: Safely create new algorithm class object...
hussainweb’s picture

Pushed a change which will fail with an exception if this condition occurs.

hussainweb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.